Skip to content
Snippets Groups Projects
Commit 5a746d52 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #65 from ids1024/patch-chown

Patch patch not to call chown
parents e134924c c9ed826f
No related branches found
No related tags found
No related merge requests found
diff -ru source/src/util.c source-new/src/util.c
--- source/src/util.c 2015-03-06 16:34:20.000000000 -0800
+++ source-new/src/util.c 2017-08-11 18:24:56.991729200 -0700
@@ -271,6 +271,7 @@
/* May fail if we are not privileged to set the file owner, or we are
not in group instat.st_gid. Ignore those errors. */
+ /*
if ((uid != -1 || gid != -1)
&& safe_lchown (to, uid, gid) != 0
&& (errno != EPERM
@@ -281,6 +282,7 @@
(uid == -1) ? "owner" : "owning group",
S_ISLNK (mode) ? "symbolic link" : "file",
quotearg (to));
+ */
}
if (attr & FA_XATTRS)
if (copy_attr (from, to) != 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment