SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
28
net/uucp/patches/patch-unix_mkdirs_c
Normal file
28
net/uucp/patches/patch-unix_mkdirs_c
Normal file
|
@ -0,0 +1,28 @@
|
|||
handle "/*" path parsing correctly; netbsd pr#2970, darcey@druid.com
|
||||
|
||||
--- unix/mkdirs.c.orig 2003-05-29 08:08:49.000000000 +0200
|
||||
+++ unix/mkdirs.c 2003-11-11 21:28:58.000000000 +0100
|
||||
@@ -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)
|
||||
{
|
||||
@@ -53,6 +48,11 @@ fsysdep_make_dirs (zfile, fpublic)
|
||||
}
|
||||
}
|
||||
*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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue