b=13177
i=green, wangdi
Description: sanity_quota fail test_1
Details : There are multiple occurences of $TSTUSR in SLES's /etc/group
file, which makes TSTID[2] inunique.
Details : change old ctl_table style and replace ctl_table/ctl_table_header
with cfs_sysctl_table_t/cfs_sysctl_table_header_t
Details : change old ctl_table style and replace ctl_table/ctl_table_header
with cfs_sysctl_table_t/cfs_sysctl_table_header_t
+Severity : normal
+Bugzilla : 13177
+Frequency : Only for SLES
+Description: sanity_quota fail test_1
+Details : There are multiple occurences of $TSTUSR in SLES's /etc/group
+ file, which makes TSTID[2] inunique.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
setup() {
# create local test group
setup() {
# create local test group
- GRP="`cat /etc/group | grep "$TSTUSR" | awk -F: '{print $1}'`"
+ GRP="`cat /etc/group | grep "^${TSTUSR}:" | awk -F: '{print $1}'`"
if [ -z "$GRP" ]; then
groupadd -g $TSTID "$TSTUSR"
fi
if [ -z "$GRP" ]; then
groupadd -g $TSTID "$TSTUSR"
fi
- TSTID="`cat /etc/group | grep "$TSTUSR" | awk -F: '{print $3}'`"
+ TSTID="`cat /etc/group | grep "^${TSTUSR}:" | awk -F: '{print $3}'`"
- GRP2="`cat /etc/group | grep "$TSTUSR2" | awk -F: '{print $1}'`"
+ GRP2="`cat /etc/group | grep "^${TSTUSR2}:" | awk -F: '{print $1}'`"
if [ -z "$GRP2" ]; then
groupadd -g $TSTID2 "$TSTUSR2"
fi
if [ -z "$GRP2" ]; then
groupadd -g $TSTID2 "$TSTUSR2"
fi
- TSTID2="`cat /etc/group | grep "$TSTUSR2" | awk -F: '{print $3}'`"
+ TSTID2="`cat /etc/group | grep "^${TSTUSR2}:" | awk -F: '{print $3}'`"
- USR="`cat /etc/passwd | grep "$TSTUSR" | awk -F: '{print $1}'`"
+ USR="`cat /etc/passwd | grep "^${TSTUSR}:" | awk -F: '{print $1}'`"
if [ -z "$USR" ]; then
useradd -u $TSTID -g $TSTID -d /tmp "$TSTUSR"
fi
RUNAS="runas -u $TSTID"
if [ -z "$USR" ]; then
useradd -u $TSTID -g $TSTID -d /tmp "$TSTUSR"
fi
RUNAS="runas -u $TSTID"
- USR2="`cat /etc/passwd | grep "$TSTUSR2" | awk -F: '{print $1}'`"
+ USR2="`cat /etc/passwd | grep "^${TSTUSR2}:" | awk -F: '{print $1}'`"
if [ -z "$USR2" ]; then
useradd -u $TSTID2 -g $TSTID2 -d /tmp "$TSTUSR2"
fi
if [ -z "$USR2" ]; then
useradd -u $TSTID2 -g $TSTID2 -d /tmp "$TSTUSR2"
fi