From 222d08dc72d4a754dff04b46bd685830702d3969 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Sep 2001 11:14:49 +0000 Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- src/rmdir.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') 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 #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); -- cgit v1.2.3-70-g09d2