Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-7859 tests: Use getent instead of /etc/passwd
[fs/lustre-release.git]
/
lustre
/
tests
/
sanity-sec.sh
diff --git
a/lustre/tests/sanity-sec.sh
b/lustre/tests/sanity-sec.sh
index
9f303c2
..
7fc381d
100755
(executable)
--- a/
lustre/tests/sanity-sec.sh
+++ b/
lustre/tests/sanity-sec.sh
@@
-50,14
+50,14
@@
clients_arr=($clients)
ID0=${ID0:-500}
ID1=${ID1:-501}
ID0=${ID0:-500}
ID1=${ID1:-501}
-USER0=$(g
rep :$ID0:$ID0: /etc/passwd
| cut -d: -f1)
-USER1=$(g
rep :$ID1:$ID1: /etc/passwd
| cut -d: -f1)
+USER0=$(g
etent passwd | grep :$ID0:$ID0:
| cut -d: -f1)
+USER1=$(g
etent passwd | grep :$ID1:$ID1:
| cut -d: -f1)
[ -z "$USER0" ] &&
[ -z "$USER0" ] &&
- skip "need to add user0 ($ID0:$ID0)
to /etc/passwd
" && exit 0
+ skip "need to add user0 ($ID0:$ID0)" && exit 0
[ -z "$USER1" ] &&
[ -z "$USER1" ] &&
- skip "need to add user1 ($ID1:$ID1)
to /etc/passwd
" && exit 0
+ skip "need to add user1 ($ID1:$ID1)" && exit 0
IDBASE=${IDBASE:-60000}
IDBASE=${IDBASE:-60000}