summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-15 11:14:49 +0000
committerJim Meyering <jim@meyering.net>2001-09-15 11:14:49 +0000
commit222d08dc72d4a754dff04b46bd685830702d3969 (patch)
treeffd183d318faae8f2b73bc1c4658598830dee3f6 /src
parent099fd9e8f05e5c651aad6bda4896f782eb586e2c (diff)
downloadcoreutils-222d08dc72d4a754dff04b46bd685830702d3969.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/rmdir.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/rmdir.c b/src/rmdir.c
index 86ec7c1a3..848a2c699 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -28,7 +28,6 @@
#include <sys/types.h>
#include "system.h"
-#include "dirname.h"
#include "error.h"
#include "quote.h"
@@ -209,10 +208,6 @@ main (int argc, char **argv)
int fail;
char *dir = argv[optind];
- /* Stripping slashes is harmless for rmdir;
- if the arg is not a directory, it will fail with ENOTDIR. */
- strip_trailing_slashes (dir);
-
/* Give a diagnostic for each attempted removal if --verbose. */
if (verbose)
error (0, 0, _("removing directory, %s"), dir);