X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fcreateskeleton-full.hc;h=e7c622cc28b43527260523e208be8911fbf46d37;hb=30537bb7ac4e4fa746c73295ecd712eb5a325379;hp=0b46186e947f4d1dfa74dc9dfe1e178689c22fc4;hpb=9f52547ae6ad8bde3d17856480453498e4bd0ab1;p=util-vserver.git diff --git a/util-vserver/lib/createskeleton-full.hc b/util-vserver/lib/createskeleton-full.hc index 0b46186..e7c622c 100644 --- a/util-vserver/lib/createskeleton-full.hc +++ b/util-vserver/lib/createskeleton-full.hc @@ -42,12 +42,9 @@ mkdir2(char const *lhs, char const *rhs, int mode) static inline int setIAttr2(char const *lhs, char const *rhs, int flags) { - struct stat st; CONCAT_TWO_ARGS(buf, lhs, rhs); - if (stat(buf, &st)==-1) return -1; - return vc_set_iattr_compat(buf, st.st_dev, st.st_ino, - 0, flags, VC_IMMUTABLE_ALL, 0); + return vc_set_iattr(buf, 0, flags, VC_IMMUTABLE_ALL); } static inline int