projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ac47a0d
)
Don't bail on EINVAL, since the clone build method sets the contexts unconditionally.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 20 Dec 2007 00:09:06 +0000 (
00:09
+0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Thu, 20 Dec 2007 00:09:06 +0000 (
00:09
+0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2646
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
src/vclone.c
patch
|
blob
|
history
diff --git
a/src/vclone.c
b/src/vclone.c
index
f1a8c0c
..
156e69b
100644
(file)
--- a/
src/vclone.c
+++ b/
src/vclone.c
@@
-181,7
+181,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 &&
- vc_set_iattr(dst_path.d, global_args->xid, 0, VC_IATTR_XID) == -1)
+ 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);
else
res = true;