diff options
author | 1996-12-03 01:33:47 +0000 | |
---|---|---|
committer | 1996-12-03 01:33:47 +0000 | |
commit | 624e8e9d8f782f0307e4f056b24d87b04d1499aa (patch) | |
tree | eb5a1b876e0b73c94e81a32728abbcf0848f8377 | |
parent | pull types.h for xpg (diff) | |
download | wireguard-openbsd-624e8e9d8f782f0307e4f056b24d87b04d1499aa.tar.xz wireguard-openbsd-624e8e9d8f782f0307e4f056b24d87b04d1499aa.zip |
handle "/*" path parsing correctly; netbsd pr#2970, darcey@druid.com
-rw-r--r-- | gnu/libexec/uucp/libunix/mkdirs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/libexec/uucp/libunix/mkdirs.c b/gnu/libexec/uucp/libunix/mkdirs.c index df4f98707f9..26307a88265 100644 --- a/gnu/libexec/uucp/libunix/mkdirs.c +++ b/gnu/libexec/uucp/libunix/mkdirs.c @@ -28,11 +28,6 @@ fsysdep_make_dirs (zfile, fpublic) { if (*z == '/' && z != zcopy) { - /* Some versions of uuto will send a double slash. Some - systems will fail to create a directory ending in a - slash. */ - if (z[-1] == '/') - continue; *z = '\0'; if (mkdir (zcopy, imode) != 0 && errno != EEXIST @@ -48,6 +43,11 @@ fsysdep_make_dirs (zfile, fpublic) return FALSE; } *z = '/'; + /* Some versions of uuto will send a double slash. Some + systems will fail to create a directory ending in a + slash. */ + while (z[1] == '/') + z++; } } |