Mercurial > hg > octave-kai > gnulib-hg
diff tests/test-set-mode-acl.sh @ 11914:e9cf9c46ad7a
Work around deficient /usr/bin/id program on Solaris.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 30 Aug 2009 17:36:32 +0200 |
parents | 2f94bd2a861d |
children | 1c0d89ded4f9 |
line wrap: on
line diff
--- a/tests/test-set-mode-acl.sh +++ b/tests/test-set-mode-acl.sh @@ -107,10 +107,16 @@ fi if test $acl_flavor != none; then + # A POSIX compliant 'id' program. + if test -f /usr/xpg4/bin/id; then + ID=/usr/xpg4/bin/id + else + ID=id + fi # Use a user and group id different from the current one, to avoid # redundant/ambiguous ACLs. - myuid=`id -u` - mygid=`id -g` + myuid=`$ID -u` + mygid=`$ID -g` auid=1 if test "$auid" = "$myuid"; then auid=2; fi agid=1