From b7c426c0ab71127c57296139abd6065dad151a7f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Dec 2005 18:58:20 +0000 Subject: Port to pre-POSIX shells like Solaris 8 /bin/sh. Don't assume /etc/passwd contains user names; use 'id' instead. --- tests/acl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/acl') diff --git a/tests/acl b/tests/acl index 2e232ee01..fdef618c4 100644 --- a/tests/acl +++ b/tests/acl @@ -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 <&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 <&2 ************************************** $0: This test requires a local user named bin. ************************************** EOF - (exit 77); exit 77 -fi +} -- cgit v1.2.3-70-g09d2