From 46be9348209094476135412fc7100b15c00f8c77 Mon Sep 17 00:00:00 2001 From: buffalo-pull Date: Thu, 7 Jul 2005 18:04:09 +0000 Subject: [PATCH] uid == gid is no longer a valid assumption. --- lustre/tests/sanity.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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?" -- 1.8.3.1