summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-05-20 00:34:30 +0000
committerache <ache@FreeBSD.org>1994-05-20 00:34:30 +0000
commit2f00abd1685496c110720bb3f43871473f6b320d (patch)
tree46e1fe954984533edc5b9be6037a2e6c6718e6db /gnu
parentbef690b1d429b90c1a093044e6fc0a28e56c2cd3 (diff)
downloadFreeBSD-src-2f00abd1685496c110720bb3f43871473f6b320d.zip
FreeBSD-src-2f00abd1685496c110720bb3f43871473f6b320d.tar.gz
Fix multiply slash problem
Diffstat (limited to 'gnu')
-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 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++;
}
}
OpenPOWER on IntegriCloud