summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-02-27 20:04:17 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-02-27 20:04:17 +0000
commit233a5e843ef5be1853f61d8dd7c4a36aab0d4e09 (patch)
tree3e5d4225bc7174fee7ea2ee98b0e1f891f6b09c0 /regress
parent2b0d157247118495a1ee5754a2d31145ced6a177 (diff)
remove any existing LoginGraceTime from sshd_config before adding
a specific one for the test back in
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/ssh/login-timeout.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/login-timeout.sh b/regress/usr.bin/ssh/login-timeout.sh
index d73923b9cdb..d9b48f39102 100644
--- a/regress/usr.bin/ssh/login-timeout.sh
+++ b/regress/usr.bin/ssh/login-timeout.sh
@@ -1,9 +1,11 @@
-# $OpenBSD: login-timeout.sh,v 1.5 2013/05/17 10:23:52 dtucker Exp $
+# $OpenBSD: login-timeout.sh,v 1.6 2014/02/27 20:04:16 djm Exp $
# Placed in the Public Domain.
tid="connect after login grace timeout"
trace "test login grace with privsep"
+cp $OBJ/sshd_config $OBJ/sshd_config.orig
+grep -vi LoginGraceTime $OBJ/sshd_config.orig > $OBJ/sshd_config
echo "LoginGraceTime 10s" >> $OBJ/sshd_config
echo "MaxStartups 1" >> $OBJ/sshd_config
start_sshd