diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-15 11:14:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-15 11:14:09 +0000 |
commit | 099fd9e8f05e5c651aad6bda4896f782eb586e2c (patch) | |
tree | 7fcb7a6f75766cef53b0abe3562d05fd4dcb7008 /src | |
parent | 52d78f05587251b5efa50f08b0dd5892bba10d35 (diff) | |
download | coreutils-099fd9e8f05e5c651aad6bda4896f782eb586e2c.tar.xz |
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/rm.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -50,7 +50,6 @@ #include <assert.h> #include "system.h" -#include "dirname.h" #include "error.h" #include "remove.h" #include "save-cwd.h" @@ -188,9 +187,6 @@ main (int argc, char **argv) struct File_spec fs; enum RM_status status; - /* Stripping slashes is harmless for rmdir; - if the arg is not a directory, it will fail with ENOTDIR. */ - strip_trailing_slashes (argv[optind]); fspec_init_file (&fs, argv[optind]); status = rm (&fs, 1, &x); assert (VALID_STATUS (status)); |