(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:05 +00:00
parent 917893f4d3
commit 72dadf240e
+1 -5
View File
@@ -23,7 +23,6 @@
#include <sys/types.h>
#include "system.h"
#include "dirname.h"
#include "error.h"
#include "filemode.h"
#include "modechange.h"
@@ -364,10 +363,7 @@ main (int argc, char **argv)
error (1, errno, _("getting attributes of %s"), quote (reference_file));
for (; optind < argc; ++optind)
{
strip_trailing_slashes (argv[optind]);
errors |= change_file_mode (argv[optind], changes, 1);
}
errors |= change_file_mode (argv[optind], changes, 1);
exit (errors);
}