Unify_copy doesn't touch sockets, so there's nothing to change the tag of.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 6 Jul 2008 23:58:22 +0000 (23:58 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 6 Jul 2008 23:58:22 +0000 (23:58 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2725 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/vclone.c

index 156e69b..c180bcf 100644 (file)
@@ -180,7 +180,8 @@ handleDirEntry(const PathInfo *src_path, const PathInfo *basename,
        }
        if (!Unify_copy(basename->d, st, dst_path.d))
          PERROR_Q(ENSC_WRAPPERS_PREFIX "Unify_copy", dst_path.d);
-       else if (global_args->xid != VC_NOCTX &&
+       else if (!S_ISSOCK(st->st_mode) &&
+                global_args->xid != VC_NOCTX &&
                 vc_set_iattr(dst_path.d, global_args->xid, 0, VC_IATTR_XID) == -1 &&
                 errno != EINVAL)
          PERROR_Q(ENSC_WRAPPERS_PREFIX "vc_set_iattr", dst_path.d);