diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-08 06:19:29 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-08 06:19:29 +0000 |
commit | c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f (patch) | |
tree | 11f59b78dbc11a7df85dbd71486fc2fc67a18261 | |
parent | d0480c26ab97b22f30a8c1537fa4f74b3a0d155c (diff) | |
download | busybox-c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f.tar.gz |
mkdir -p had gotten broken. Fixed now.
-Erik
-rw-r--r-- | utility.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, '/'); |