diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-15 18:58:20 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-15 18:58:20 +0000 |
commit | b7c426c0ab71127c57296139abd6065dad151a7f (patch) | |
tree | c070d45879a8949b76c4310ea7857071dd12e336 /tests | |
parent | 6dcd2807d7fad4f86baea9ce5370770949f97d50 (diff) | |
download | coreutils-b7c426c0ab71127c57296139abd6065dad151a7f.tar.xz |
Port to pre-POSIX shells like Solaris 8 /bin/sh.
Don't assume /etc/passwd contains user names; use 'id' instead.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acl | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,18 +1,16 @@ -if ! getfacl --version 2> /dev/null 1>&2 || \ - ! setfacl --version 2> /dev/null 1>&2 ; then +getfacl --version 2> /dev/null 1>&2 && setfacl --version 2> /dev/null 1>&2 || { cat <<EOF 1>&2 ************************************** $0: This test requires getfacl and setfacl. ************************************** EOF (exit 77); exit 77 -fi +} -if ! grep '^bin:' /etc/passwd 2> /dev/null 1>&2 ; then +id -u bin 2> /dev/null 1>&2 || { cat <<EOF 1>&2 ************************************** $0: This test requires a local user named bin. ************************************** EOF - (exit 77); exit 77 -fi +} |