mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 11:00:20 +00:00
Caps are getting lost when cloning an LXC. Adding the -X parameter copies the extended attributes. This allows things like ping to continue to be used by a non-privilged user in Debian at least.
This commit is contained in:
parent
f20b99d3de
commit
d02ee577ca
@ -98,7 +98,7 @@ static int do_rsync(const char *src, const char *dest)
|
|||||||
s[l-2] = '/';
|
s[l-2] = '/';
|
||||||
s[l-1] = '\0';
|
s[l-1] = '\0';
|
||||||
|
|
||||||
execlp("rsync", "rsync", "-aH", s, dest, (char *)NULL);
|
execlp("rsync", "rsync", "-aHX", s, dest, (char *)NULL);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user