summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-15 10:32:05 +0000
committerJim Meyering <jim@meyering.net>2001-09-15 10:32:05 +0000
commit72dadf240ed5cd3ddef89111cc4c8c53986bca62 (patch)
tree071666ae0e6ff9bd130da98593bccd3c87dae30f /src
parent917893f4d31b90bdc3612a6d0fcb52f90efac386 (diff)
downloadcoreutils-72dadf240ed5cd3ddef89111cc4c8c53986bca62.tar.xz
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Diffstat (limited to 'src')
-rw-r--r--src/chmod.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/chmod.c b/src/chmod.c
index 065e64af8..859cf4681 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -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);
}