Skip to content
Snippets Groups Projects
Commit 85790746 authored by Simon McVittie's avatar Simon McVittie
Browse files

tree-copy: Never try to change files' ownership


Only root can do this. Updating libglnx has given us the ability to
skip that step, so do so.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 4e90b52b
No related branches found
No related tags found
No related merge requests found
Pipeline #11327 passed
...@@ -274,7 +274,7 @@ copy_tree_helper (const char *fpath, ...@@ -274,7 +274,7 @@ copy_tree_helper (const char *fpath,
* fails too. */ * fails too. */
if (!glnx_file_copy_at (AT_FDCWD, fpath, sb, if (!glnx_file_copy_at (AT_FDCWD, fpath, sb,
AT_FDCWD, dest, AT_FDCWD, dest,
GLNX_FILE_COPY_OVERWRITE, GLNX_FILE_COPY_OVERWRITE | GLNX_FILE_COPY_NOCHOWN,
NULL, error)) NULL, error))
{ {
glnx_prefix_error (error, "Unable to copy \"%s\" to \"%s\"", glnx_prefix_error (error, "Unable to copy \"%s\" to \"%s\"",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment