summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-12-30 09:07:13 +0000
committerJim Meyering <jim@meyering.net>1999-12-30 09:07:13 +0000
commit1d54f66fd0c9376ad4269e24b9f86777837628f7 (patch)
treea2113dba6a6591d793398fbfddfae8d26859102e /src
parent84226463b1b1b08eb65baee50d962925f613c3d9 (diff)
downloadcoreutils-1d54f66fd0c9376ad4269e24b9f86777837628f7.tar.xz
(remove_parents, main): Don't pass errno to error
when printing "removing directory" message. Failure of rmdir is handled elsewhere.
Diffstat (limited to 'src')
-rw-r--r--src/rmdir.c4
1 files changed, 2 insertions, 2 deletions
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);