projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
222d08d
)
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
author
Jim Meyering
<jim@meyering.net>
Sat, 15 Sep 2001 11:15:56 +0000
(11:15 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/mkdir.c
b/src/mkdir.c
index
48b03ba
..
549bdad
100644
(file)
--- 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]);