From 25f7b5cf1c60eb98a9106473c3edbf22868b3e0f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 11 Jan 1995 16:02:47 +0000 Subject: [PATCH] changed PASSWORD_TIMEOUT to minutes --- check.c | 2 +- sudo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check.c b/check.c index 3f6be9d95..f7cb380ba 100644 --- a/check.c +++ b/check.c @@ -389,7 +389,7 @@ static void check_passwd() #ifdef USE_GETPASS pass = (char *) getpass("Password:"); #else - pass = tgetpass("Password:", PASSWORD_TIMEOUT); + pass = tgetpass("Password:", PASSWORD_TIMEOUT * 60); #endif /* USE_GETPASS */ #endif /* HAVE_SKEY */ if (!pass || *pass == '\0') diff --git a/sudo.h b/sudo.h index de09efe1c..e38915226 100644 --- a/sudo.h +++ b/sudo.h @@ -141,10 +141,10 @@ #endif /* - * Number of seconds that can elapse before a user enters a password + * Number of minutes that can elapse before a user enters a password */ #ifndef PASSWORD_TIMEOUT -# define PASSWORD_TIMEOUT 300 +# define PASSWORD_TIMEOUT 5 #endif /* -- 2.40.0