From 0449a1f722818744752729a2d6da10b62240a338 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 19 Feb 2004 22:14:37 +0000 Subject: [PATCH] use new iattr interface git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@950 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/createskeleton-full.hc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 1.8.1.5