[openssh-commits] [openssh] 01/01: upstream commit

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Dec 19 15:01:23 AEDT 2016


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit eae735a82d759054f6ec7b4e887fb7a5692c66d7
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Mon Dec 19 03:32:57 2016 +0000

    upstream commit
    
    Use LOGNAME to get current user and fall back to whoami if
    not set. Mainly to benefit -portable since some platforms don't have whoami.
    
    Upstream-Regress-ID: e3a16b7836a3ae24dc8f8a4e43fdf8127a60bdfa
---
 regress/allow-deny-users.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/regress/allow-deny-users.sh b/regress/allow-deny-users.sh
index 217b159..32a269a 100644
--- a/regress/allow-deny-users.sh
+++ b/regress/allow-deny-users.sh
@@ -3,7 +3,10 @@
 
 tid="AllowUsers/DenyUsers"
 
-me=`whoami`
+me="$LOGNAME"
+if [ "x$me" == "x" ]; then
+	me=`whoami`
+fi
 other="nobody"
 
 test_auth()

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list