From: Jim Meyering Date: Sat, 15 Sep 2001 11:14:49 +0000 (+0000) Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. X-Git-Tag: TEXTUTILS-2_0_15~111 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=222d08dc72d4a754dff04b46bd685830702d3969;p=thirdparty%2Fcoreutils.git (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- diff --git a/src/rmdir.c b/src/rmdir.c index 86ec7c1a32..848a2c699f 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);