summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorErik Andersen2000-02-08 06:19:29 +0000
committerErik Andersen2000-02-08 06:19:29 +0000
commitc0bf817bbc5c7867fbe8fb76d5c39f8ee802692f (patch)
tree11f59b78dbc11a7df85dbd71486fc2fc67a18261 /utility.c
parentd0480c26ab97b22f30a8c1537fa4f74b3a0d155c (diff)
downloadbusybox-c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f.zip
busybox-c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f.tar.gz
mkdir -p had gotten broken. Fixed now.
-Erik
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 6d7fa95..10e107f 100644
--- a/utility.c
+++ b/utility.c
@@ -548,7 +548,8 @@ extern int createPath (const char *name, int mode)
int retVal=0;
strcpy( buf, name);
- cp = strchr(buf, '/');
+ for (cp = buf; *cp == '/'; cp++);
+ cp = strchr(cp, '/');
while (cp) {
cpOld = cp;
cp = strchr(cp + 1, '/');