From 72dadf240ed5cd3ddef89111cc4c8c53986bca62 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Sep 2001 10:32:05 +0000 Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- src/chmod.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/chmod.c') 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 #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); } -- cgit v1.2.3-54-g00ecf