summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-15 11:15:56 +0000
committerJim Meyering <jim@meyering.net>2001-09-15 11:15:56 +0000
commit08e983d3df3b3148943d21cb65a0c749cf159203 (patch)
tree20723b9a8fdb67c0f2639ba20d98b5d5bc632b16 /src
parent222d08dc72d4a754dff04b46bd685830702d3969 (diff)
downloadcoreutils-08e983d3df3b3148943d21cb65a0c749cf159203.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/mkdir.c6
1 files changed, 0 insertions, 6 deletions
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]);