diff options
-rw-r--r-- | bin/mkdir/mkdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c index c0a9ffd..5bb41c3 100644 --- a/bin/mkdir/mkdir.c +++ b/bin/mkdir/mkdir.c @@ -147,7 +147,7 @@ build(char *path, mode_t omode) else if (p[0] != '/') continue; *p = '\0'; - if (p[1] == '\0') + if (!last && p[1] == '\0') last = 1; if (first) { /* |