(main): Don't strip trailing slashes; POSIX doesn't allow it here.
authorJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 10:32:05 +0000 (10:32 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 10:32:05 +0000 (10:32 +0000)
Don't include "dirname.h" when no longer needed.

src/chmod.c

index 065e64af86b676aca15771d2032af67871bbb761..859cf4681ca6922369fd74a2d2dca3c5ebd6e6db 100644 (file)
@@ -23,7 +23,6 @@
 #include <sys/types.h>
 
 #include "system.h"
-#include "dirname.h"
 #include "error.h"
 #include "filemode.h"
 #include "modechange.h"
@@ -364,10 +363,7 @@ main (int argc, char **argv)
     error (1, errno, _("getting attributes of %s"), quote (reference_file));
 
   for (; optind < argc; ++optind)
-    {
-      strip_trailing_slashes (argv[optind]);
-      errors |= change_file_mode (argv[optind], changes, 1);
-    }
+    errors |= change_file_mode (argv[optind], changes, 1);
 
   exit (errors);
 }