PL3118 and PL3131 fix: do not reset the immutable bits on vservers
[util-vserver.git] / scripts / vuseradd
index 9c9457e..cc8d414 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 2004  The Trustees of Princeton University (Trustees).
 #
-# $Id: vuseradd,v 1.18 2004/11/17 20:34:25 mef Exp $
+# $Id: vuseradd,v 1.19 2004/11/17 20:37:32 mlhuang Exp $
 #
 
 : ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars}
@@ -56,7 +56,6 @@ if [ ! -d "$VROOTDIR/$NAME" ] ; then
        # move it to .vcache when complete
        if [ $RETVAL -ne 0 ] ; then 
            echo "Error $RETVAL building $VROOTDIR/$NAME"
-           chattr -R -i "$TMP"
            rm -rf "$TMP" /etc/vservers/$NAME.conf /var/run/vservers/$NAME.ctx
            userdel -r $NAME
            exit $RETVAL