- (djm) [regress/test-exec.sh] Try 'logname' as well as 'whoami' to
determine the user's login name - needed for regress tests on Solaris 10 and OpenSolaris
This commit is contained in:
parent
923f1ce0b7
commit
e682cb0780
|
@ -1,3 +1,8 @@
|
||||||
|
20060201
|
||||||
|
- (djm) [regress/test-exec.sh] Try 'logname' as well as 'whoami' to
|
||||||
|
determine the user's login name - needed for regress tests on Solaris
|
||||||
|
10 and OpenSolaris
|
||||||
|
|
||||||
20060131
|
20060131
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
- jmc@cvs.openbsd.org 2006/01/20 11:21:45
|
- jmc@cvs.openbsd.org 2006/01/20 11:21:45
|
||||||
|
@ -3798,4 +3803,4 @@
|
||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4112 2006/01/31 11:11:37 djm Exp $
|
$Id: ChangeLog,v 1.4113 2006/02/01 00:21:01 djm Exp $
|
||||||
|
|
|
@ -24,6 +24,8 @@ if [ -x /usr/ucb/whoami ]; then
|
||||||
USER=`/usr/ucb/whoami`
|
USER=`/usr/ucb/whoami`
|
||||||
elif whoami >/dev/null 2>&1; then
|
elif whoami >/dev/null 2>&1; then
|
||||||
USER=`whoami`
|
USER=`whoami`
|
||||||
|
elif logname >/dev/null 2>&1; then
|
||||||
|
USER=`logname`
|
||||||
else
|
else
|
||||||
USER=`id -un`
|
USER=`id -un`
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue