Unverified Commit d3d1c6e1 by Christian Brauner Committed by Stéphane Graber

conf: always use target_fd in userns_exec_mapped_root()

parent 18adfa20
......@@ -4630,7 +4630,7 @@ int userns_exec_mapped_root(const char *path, int path_fd,
if (!lxc_setgroups(0, NULL))
_exit(EXIT_FAILURE);
ret = chown(path, 0, st.st_gid);
ret = fchown(target_fd, 0, st.st_gid);
if (ret) {
SYSERROR("Failed to chown \"%s\"", path);
_exit(EXIT_FAILURE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment