From: Erez Zadok Date: Thu, 29 Nov 2007 08:09:23 +0000 (-0500) Subject: chgrp to 0 also subdirs under /odf/ns X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=61137b60d60363bb54b65a656b202179528dd294;p=unionfs-regression-odf.git chgrp to 0 also subdirs under /odf/ns --- diff --git a/scaffold b/scaffold index fb929de..a3db2a9 100644 --- a/scaffold +++ b/scaffold @@ -127,6 +127,7 @@ function create_hierarchy { elif [ ! -z "$WH" ]; then if [ "$ODF" -eq "1" ]; then mkdir -p `dirname $ODF_DIR"/ns/"$NAME` || exit $? + chgrp 0 `dirname $ODF_DIR/ns/$NAME` || exit $? ln $ODF_DIR/whiteout $ODF_DIR"/ns/"$NAME else wh_abs_path=$WH_LOC"/"$NAME @@ -139,6 +140,7 @@ function create_hierarchy { if [ "$ODF" -eq "1" ]; then if [ ! -d $ODF_DIR/ns/$NAME ]; then mkdir -p $ODF_DIR"/ns/"$NAME || exit $? + chgrp 0 $ODF_DIR/ns/$NAME || exit $? fi branch_id=$(./progs/get_branch_id $ODF_DIR/sb $OPQ_LOC) branch_id=`expr $branch_id + 1`;