From 1d54f66fd0c9376ad4269e24b9f86777837628f7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 30 Dec 1999 09:07:13 +0000 Subject: (remove_parents, main): Don't pass errno to error when printing "removing directory" message. Failure of rmdir is handled elsewhere. --- src/rmdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rmdir.c') diff --git a/src/rmdir.c b/src/rmdir.c index aa5293e33..b193a0851 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -113,7 +113,7 @@ remove_parents (char *path) /* Give a diagnostic for each attempted removal if --verbose. */ if (verbose) - error (0, errno, _("removing directory, %s"), path); + error (0, 0, _("removing directory, %s"), path); fail = rmdir (path); @@ -215,7 +215,7 @@ main (int argc, char **argv) /* Give a diagnostic for each attempted removal if --verbose. */ if (verbose) - error (0, errno, _("removing directory, %s"), dir); + error (0, 0, _("removing directory, %s"), dir); fail = rmdir (dir); -- cgit v1.2.3-54-g00ecf