diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-15 10:32:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-15 10:32:36 +0000 |
commit | 52d78f05587251b5efa50f08b0dd5892bba10d35 (patch) | |
tree | aee1359c1b418bbb1de6b8585f585e5ebbb1df22 | |
parent | 72dadf240ed5cd3ddef89111cc4c8c53986bca62 (diff) | |
download | coreutils-52d78f05587251b5efa50f08b0dd5892bba10d35.tar.xz |
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
-rw-r--r-- | src/chown.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/chown.c b/src/chown.c index 1b8afaf28..d8f642627 100644 --- a/src/chown.c +++ b/src/chown.c @@ -34,7 +34,6 @@ #include <getopt.h> #include "system.h" -#include "dirname.h" #include "error.h" #include "lchown.h" #include "quote.h" @@ -234,11 +233,8 @@ main (int argc, char **argv) } for (; optind < argc; ++optind) - { - strip_trailing_slashes (argv[optind]); - errors |= change_file_owner (1, argv[optind], uid, gid, - old_uid, old_gid, &chopt); - } + errors |= change_file_owner (1, argv[optind], uid, gid, + old_uid, old_gid, &chopt); chopt_free (&chopt); |