From c0bf817bbc5c7867fbe8fb76d5c39f8ee802692f Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Tue, 8 Feb 2000 06:19:29 +0000 Subject: [PATCH] mkdir -p had gotten broken. Fixed now. -Erik --- utility.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, '/'); -- 2.25.1