mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-28 03:24:43 -04: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:
+1
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user