summaryrefslogtreecommitdiffstats
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index bfbb305b..59ae33c0 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -24,6 +24,8 @@ if [ -x /usr/ucb/whoami ]; then
USER=`/usr/ucb/whoami`
elif whoami >/dev/null 2>&1; then
USER=`whoami`
+elif logname >/dev/null 2>&1; then
+ USER=`logname`
else
USER=`id -un`
fi