]> 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:09 +0000 (11:14 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 11:14:09 +0000 (11:14 +0000)
Don't include "dirname.h" when no longer needed.

src/rm.c

index 40a273da28425a1a9cf8b96ea7b606823f9ca0bf..5ffde0deb2bcae3e72a51e32134d16ff96651308 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -50,7 +50,6 @@
 #include <assert.h>
 
 #include "system.h"
-#include "dirname.h"
 #include "error.h"
 #include "remove.h"
 #include "save-cwd.h"
@@ -188,9 +187,6 @@ main (int argc, char **argv)
       struct File_spec fs;
       enum RM_status status;
 
-      /* Stripping slashes is harmless for rmdir;
-        if the arg is not a directory, it will fail with ENOTDIR.  */
-      strip_trailing_slashes (argv[optind]);
       fspec_init_file (&fs, argv[optind]);
       status = rm (&fs, 1, &x);
       assert (VALID_STATUS (status));