]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
authorJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 10:32:36 +0000 (10:32 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 10:32:36 +0000 (10:32 +0000)
Don't include "dirname.h" when no longer needed.

src/chown.c

index 1b8afaf28f4cc92c096c249a31db4df1df44fc4a..d8f642627bedd0cb0161f0403ddb2a2b18f952a1 100644 (file)
@@ -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);