]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
the sudo timeout was 5 minutes i believe, so we'll match that.
[opendoas.git] / 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);
        }