From: buffalo-pull Date: Thu, 7 Jul 2005 18:04:09 +0000 (+0000) Subject: uid == gid is no longer a valid assumption. X-Git-Tag: 1.4.10~918 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=46be9348209094476135412fc7100b15c00f8c77;p=fs%2Flustre-release.git uid == gid is no longer a valid assumption. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 9756ddf..c270f95 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -375,7 +375,11 @@ test_6g() { $RUNAS mkdir $DIR/d6g/d || error chmod g+s $DIR/d6g/d || error mkdir $DIR/d6g/d/subdir - $CHECKSTAT -g \#$RUNAS_ID $DIR/d6g/d/subdir || error + if [ -z "$RUNAS_GID" ]; then + $CHECKSTAT -g \#$RUNAS_ID $DIR/d6g/d/subdir || error + else + $CHECKSTAT -g \#$RUNAS_GID $DIR/d6g/d/subdir || error + fi } run_test 6g "Is new dir in sgid dir inheriting group?"