]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
authorJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 11:14:49 +0000 (11:14 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 11:14:49 +0000 (11:14 +0000)
Don't include "dirname.h" when no longer needed.

src/rmdir.c

index 86ec7c1a32c82091c07c00a877defee60d8a96eb..848a2c699f842170a1aea73b3ec6c801ea7a4fa6 100644 (file)
@@ -28,7 +28,6 @@
 #include <sys/types.h>
 
 #include "system.h"
-#include "dirname.h"
 #include "error.h"
 #include "quote.h"
 
@@ -209,10 +208,6 @@ main (int argc, char **argv)
       int fail;
       char *dir = argv[optind];
 
-      /* Stripping slashes is harmless for rmdir;
-        if the arg is not a directory, it will fail with ENOTDIR.  */
-      strip_trailing_slashes (dir);
-
       /* Give a diagnostic for each attempted removal if --verbose.  */
       if (verbose)
        error (0, 0, _("removing directory, %s"), dir);