summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}