Index: src/bin/ipcclean/ipcclean.sh =================================================================== RCS file: /cvsroot/pgsql/src/bin/ipcclean/ipcclean.sh,v retrieving revision 1.16 diff -c -c -r1.16 ipcclean.sh *** src/bin/ipcclean/ipcclean.sh 5 Jan 2006 01:56:29 -0000 1.16 --- src/bin/ipcclean/ipcclean.sh 3 Mar 2006 16:48:43 -0000 *************** *** 19,25 **** exit 0 fi ! if [ "$USER" = 'root' -o "$LOGNAME" = 'root' ] then ( echo "$CMDNAME: cannot be run as root" 1>&2 --- 19,26 ---- exit 0 fi ! # only check $LOGNAME if $USER is not set ! if [ "$USER" = 'root' -o \( ! "$USER" -a "$LOGNAME" = 'root' \) ] then ( echo "$CMDNAME: cannot be run as root" 1>&2