From: Erik Andersen Date: Tue, 8 Feb 2000 06:19:29 +0000 (-0000) Subject: mkdir -p had gotten broken. Fixed now. X-Git-Tag: 0_42~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f;p=oweals%2Fbusybox.git mkdir -p had gotten broken. Fixed now. -Erik --- 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, '/');