From 8ada725ee1c6739d94b74331fa9ae0485f6387a5 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 20 May 1994 00:34:30 +0000 Subject: [PATCH] Fix multiply slash problem --- gnu/libexec/uucp/libunix/mkdirs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/libexec/uucp/libunix/mkdirs.c b/gnu/libexec/uucp/libunix/mkdirs.c index 129488c8d950..9b5b23ffd7b1 100644 --- a/gnu/libexec/uucp/libunix/mkdirs.c +++ b/gnu/libexec/uucp/libunix/mkdirs.c @@ -38,7 +38,10 @@ fsysdep_make_dirs (zfile, fpublic) ubuffree (zcopy); return FALSE; } - *z = '/'; + *z = '/'; /* replace '/' in its place */ + /* now skips over multiple '/' in name */ + while ( (*(z + 1)) && (*(z + 1)) == '/') + z++; } }