]> git.armaanb.net Git - opendoas.git/commitdiff
the sudo timeout was 5 minutes i believe, so we'll match that.
authortedu <tedu>
Sat, 3 Sep 2016 11:03:18 +0000 (11:03 +0000)
committerDuncaen <mail@duncano.de>
Mon, 11 Dec 2017 15:28:56 +0000 (16:28 +0100)
doas.c

diff --git a/doas.c b/doas.c
index f1a7c34e7b7372d942261a8d2a84175ad9ead38e..7757f49659969ab979367449feac2398f90a1cb0 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -261,7 +261,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);
        }