summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-09-03 11:03:19 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-09-03 11:03:19 +0000
commit96753c3ba1c3d981e4f608e1412a902224c519f2 (patch)
treefec73a90358f823222e77832227d250812f78ea2
parentf0748a0e99cfc6024d1caa6543445cbd01babedb (diff)
the sudo timeout was 5 minutes i believe, so we'll match that.
-rw-r--r--usr.bin/doas/doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c
index d65beb3e70a..d82d9f119b7 100644
--- a/usr.bin/doas/doas.c
+++ b/usr.bin/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.63 2016/09/02 18:12:30 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.64 2016/09/03 11:03:18 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -245,7 +245,7 @@ authuser(char *myname, char *login_style, int persist)
explicit_bzero(rbuf, sizeof(rbuf));
good:
if (fd != -1) {
- int secs = 10 * 60;
+ int secs = 5 * 60;
ioctl(fd, TIOCSETVERAUTH, &secs);
close(fd);
}