From 52d78f05587251b5efa50f08b0dd5892bba10d35 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Sep 2001 10:32:36 +0000 Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- src/chown.c | 8 ++------ 1 file 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 #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); -- cgit v1.2.3-70-g09d2