From cb254ada9242e23f138ee4b231fb98f6bb8a7126 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sun, 6 Jul 2008 23:58:22 +0000 Subject: [PATCH] Unify_copy doesn't touch sockets, so there's nothing to change the tag of. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2725 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- src/vclone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vclone.c b/src/vclone.c index 156e69b..c180bcf 100644 --- a/src/vclone.c +++ b/src/vclone.c @@ -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); -- 1.8.1.5