Mercurial > illumos > illumos-gate
changeset 4317:8008de6d52e7
6554556 stmsboot's privilege message is not quite correct
author | jmcp |
---|---|
date | Thu, 24 May 2007 20:51:34 -0700 |
parents | 8f314c0ecee2 |
children | f8fa23eb4630 |
files | usr/src/cmd/stmsboot/stmsboot.sh |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/stmsboot/stmsboot.sh Thu May 24 19:33:22 2007 -0700 +++ b/usr/src/cmd/stmsboot/stmsboot.sh Thu May 24 20:51:34 2007 -0700 @@ -460,10 +460,8 @@ DRVLIST=$DRV fi - -STMSPRIVS=`/usr/bin/ppriv $$ | $EGREP "E:.*all|E:.*sys_devices"` -USERID=`id` -if [ "$USERID" != "uid=0(root) gid=0(root)" ] -o [ "x$STMSPRIVS" == "x" ]; then +USERID=`id | $EGREP "uid=0"` +if [ -z "$USERID" ]; then gettext "You must be super-user to run this script.\n" 1>&2 exit 1 fi