/* rsync the contents from source to target */
data.orig = orig;
data.new = new;
- if (am_host_unpriv()) {
+ if (am_guest_unpriv()) {
ret = userns_exec_full(conf, lxc_storage_rsync_exec_wrapper,
&data, "lxc_storage_rsync_exec_wrapper");
if (ret < 0) {
if (ret < 0 && errno != ENOENT)
return false;
- if (am_host_unpriv()) {
+ if (am_guest_unpriv()) {
struct rsync_data_char args;
args.src = orig->src;