From 08e983d3df3b3148943d21cb65a0c749cf159203 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Sep 2001 11:15:56 +0000 Subject: (main): Don't strip trailing slashes; POSIX doesn't allow it here. Don't include "dirname.h" when no longer needed. --- src/mkdir.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/mkdir.c b/src/mkdir.c index 48b03baa5..549bdadde 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -142,12 +142,6 @@ main (int argc, char **argv) { int fail = 0; - /* Remove any trailing slashes. Not removing them would lead to calling - `mkdir ("dir/", mode)' for e.g., the commands `mkdir dir/' and - `mkdir -p dir/', and such a call fails on NetBSD systems when `dir' - doesn't already exist. */ - strip_trailing_slashes (argv[optind]); - if (create_parents) { char *parents = dir_name (argv[optind]); -- cgit v1.2.3-70-g09d2