mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-02-17 18:41:53 -05:00
Improved the testuser-setting code to try to get it to work
under solaris.
This commit is contained in:
@@ -142,7 +142,13 @@ echo "$0 running in `pwd`"
|
||||
echo " rsync_bin=$rsync_bin"
|
||||
echo " srcdir=$srcdir"
|
||||
|
||||
testuser=`id -un || whoami || echo UNKNOWN`
|
||||
if test -e /usr/bin/whoami; then
|
||||
testuser=`/usr/bin/whoami`
|
||||
elif test -e /usr/ucb/whoami; then
|
||||
testuser=`/usr/ucb/whoami`
|
||||
else
|
||||
testuser=`id -un || whoami || echo UNKNOWN`
|
||||
fi
|
||||
|
||||
echo " testuser=$testuser"
|
||||
echo " os=`uname -a`"
|
||||
|
||||
Reference in New Issue
Block a user