Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-02-08 09:19:29 +0300
committerErik Andersen <andersen@codepoet.org>2000-02-08 09:19:29 +0300
commitc0bf817bbc5c7867fbe8fb76d5c39f8ee802692f (patch)
tree11f59b78dbc11a7df85dbd71486fc2fc67a18261
parentd0480c26ab97b22f30a8c1537fa4f74b3a0d155c (diff)
mkdir -p had gotten broken. Fixed now.
-Erik
-rw-r--r--utility.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 6d7fa955b..10e107fc5 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, '/');