(main): Don't strip trailing slashes; POSIX doesn't allow it here.
authorJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 11:15:56 +0000 (11:15 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Sep 2001 11:15:56 +0000 (11:15 +0000)
Don't include "dirname.h" when no longer needed.

src/mkdir.c

index 48b03ba..549bdad 100644 (file)
@@ -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]);