diff options
author | ache <ache@FreeBSD.org> | 1994-05-20 00:34:30 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-05-20 00:34:30 +0000 |
commit | 2f00abd1685496c110720bb3f43871473f6b320d (patch) | |
tree | 46e1fe954984533edc5b9be6037a2e6c6718e6db /gnu/libexec | |
parent | bef690b1d429b90c1a093044e6fc0a28e56c2cd3 (diff) | |
download | FreeBSD-src-2f00abd1685496c110720bb3f43871473f6b320d.zip FreeBSD-src-2f00abd1685496c110720bb3f43871473f6b320d.tar.gz |
Fix multiply slash problem
Diffstat (limited to 'gnu/libexec')
-rw-r--r-- | gnu/libexec/uucp/libunix/mkdirs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/libexec/uucp/libunix/mkdirs.c b/gnu/libexec/uucp/libunix/mkdirs.c index 129488c..9b5b23f 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++; } } |