1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-18 01:18:51 +02:00

(main): Don't strip trailing slashes; POSIX doesn't allow it here.

Don't include "dirname.h" when no longer needed.
This commit is contained in:
Jim Meyering
2001-09-15 10:32:36 +00:00
parent 72dadf240e
commit 52d78f0558
+2 -6
View 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);