removed 'run.rev' as a vserver-local variable and made it a system-wide setting
[util-vserver.git] / util-vserver / lib / createskeleton-full.hc
index 0b46186..8090a93 100644 (file)
@@ -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
@@ -76,18 +73,6 @@ vc_createSkeleton_full(char const *id, char const *name, int flags)
     return -1;
 
   for (;;) {
-    char const *basedir = CONFDIR "/.defaults/run.rev";
-
-    if (!utilvserver_isDirectory(basedir, true)) basedir = DEFAULT_PKGSTATEREVDIR;
-    if (!utilvserver_isDirectory(basedir, true)) break;
-
-    if (symlink2(basedir, "", id, "run.rev")==-1)
-      return -1;
-
-    break;
-  }
-
-  for (;;) {
     char const *basedir = CONFDIR "/.defaults/run";
 
     if (!utilvserver_isDirectory(basedir, true)) basedir = DEFAULT_PKGSTATEDIR;