X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftestsuite%2Fgetpid.sh;fp=src%2Ftestsuite%2Fgetpid.sh;h=8505914208e68538013bd0777d40d380ccbe2fc7;hp=465def64605356d0c74b45a6348f7a1bcde4a8cd;hb=e3f96d446dd88241a94de51b676fd118d47ab7d7;hpb=0d42ea7709c786cd9c405cf04395afd0091e580e diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh index 465def64..85059142 100755 --- a/src/testsuite/getpid.sh +++ b/src/testsuite/getpid.sh @@ -23,7 +23,7 @@ if [ -x /usr/bin/pgrep ]; then *) PGREP_FLAGS="" esac - exec /usr/bin/pgrep $PGREP_FLAGS -n -u "$LOGNAME" "$1" + exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1" fi # pidof(1) could be a good alternative on elder Linux systems