]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_parents, main): Don't pass errno to error
authorJim Meyering <jim@meyering.net>
Thu, 30 Dec 1999 09:07:13 +0000 (09:07 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 Dec 1999 09:07:13 +0000 (09:07 +0000)
when printing "removing directory" message.  Failure of rmdir is
handled elsewhere.

src/rmdir.c

index aa5293e333bfde507a1f3f2246b1add886c4d16b..b193a08519cdde6161bda8929fad43df6adeacde 100644 (file)
@@ -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);