mirror of
git://github.com/lxc/lxc
synced 2025-08-31 20:07:52 +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:
@@ -98,7 +98,7 @@ static int do_rsync(const char *src, const char *dest)
|
||||
s[l-2] = '/';
|
||||
s[l-1] = '\0';
|
||||
|
||||
execlp("rsync", "rsync", "-aH", s, dest, (char *)NULL);
|
||||
execlp("rsync", "rsync", "-aHX", s, dest, (char *)NULL);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user