From: Jim Meyering Date: Sat, 15 Sep 2001 10:32:36 +0000 (+0000) Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. X-Git-Tag: TEXTUTILS-2_0_15~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52d78f05587251b5efa50f08b0dd5892bba10d35;p=thirdparty%2Fcoreutils.git (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- diff --git a/src/chown.c b/src/chown.c index 1b8afaf28f..d8f642627b 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);