6982b5a295
* Option --owner can be used in copy-out mode, allowing to uniformly override ownership of the files being added to the archive. * Symlinks were handled incorrectly in copy-out mode. * Fix handling of large files. * Fix setting the file permissions in copy-out mode. * Honor umask when creating intermediate directories, not specified in the archive.
16 lines
509 B
Plaintext
16 lines
509 B
Plaintext
$OpenBSD: patch-src_makepath_c,v 1.1 2007/07/09 17:38:42 naddy Exp $
|
|
--- src/makepath.c.orig Wed May 9 14:06:23 2007
|
|
+++ src/makepath.c Wed May 9 14:06:46 2007
|
|
@@ -65,10 +65,10 @@ make_path (char *argpath,
|
|
|
|
if (stat (dirpath, &stats))
|
|
{
|
|
+ char *slash = dirpath;
|
|
tmpmode = MODE_RWX & ~ newdir_umask;
|
|
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
|
|
|
|
- char *slash = dirpath;
|
|
while (*slash == '/')
|
|
slash++;
|
|
while ((slash = strchr (slash, '/')))
|