aboutsummaryrefslogtreecommitdiff
path: root/gnu/libexec/uucp
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-05-20 00:34:30 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-05-20 00:34:30 +0000
commit8ada725ee1c6739d94b74331fa9ae0485f6387a5 (patch)
tree46e1fe954984533edc5b9be6037a2e6c6718e6db /gnu/libexec/uucp
parent382bb6cf5d2093c848575e856d6bcc36023498b9 (diff)
Notes
Diffstat (limited to 'gnu/libexec/uucp')
-rw-r--r--gnu/libexec/uucp/libunix/mkdirs.c5
1 files changed, 4 insertions, 1 deletions
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++;
}
}