diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-17 10:23:53 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-17 10:23:53 +0000 |
commit | 6cdf70c7559d544d5b304004fbe790c2cb54f5dc (patch) | |
tree | 8fbb1b069871985081bfa237f191dda8f3cd40b3 /regress/usr.bin/ssh/login-timeout.sh | |
parent | 1819e83c91a86bd8c922d748aa5b23fabb45cb71 (diff) |
Use SUDO when cat'ing pid files and running the sshd log wrapper so that
it works with a restrictive umask and the pid files are not world readable.
Changes from -portable.
Diffstat (limited to 'regress/usr.bin/ssh/login-timeout.sh')
-rw-r--r-- | regress/usr.bin/ssh/login-timeout.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/login-timeout.sh b/regress/usr.bin/ssh/login-timeout.sh index 15a887f74b1..d73923b9cdb 100644 --- a/regress/usr.bin/ssh/login-timeout.sh +++ b/regress/usr.bin/ssh/login-timeout.sh @@ -1,4 +1,4 @@ -# $OpenBSD: login-timeout.sh,v 1.4 2005/02/27 23:13:36 djm Exp $ +# $OpenBSD: login-timeout.sh,v 1.5 2013/05/17 10:23:52 dtucker Exp $ # Placed in the Public Domain. tid="connect after login grace timeout" @@ -15,7 +15,7 @@ if [ $? -ne 0 ]; then fail "ssh connect after login grace timeout failed with privsep" fi -$SUDO kill `cat $PIDFILE` +$SUDO kill `$SUDO cat $PIDFILE` trace "test login grace without privsep" echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config |