2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-02 23:35:36 +00:00

changed PASSWORD_TIMEOUT to minutes

This commit is contained in:
Todd C. Miller
1995-01-11 16:02:47 +00:00
parent 7bd269bd8e
commit 25f7b5cf1c
2 changed files with 3 additions and 3 deletions

View File

@@ -389,7 +389,7 @@ static void check_passwd()
#ifdef USE_GETPASS #ifdef USE_GETPASS
pass = (char *) getpass("Password:"); pass = (char *) getpass("Password:");
#else #else
pass = tgetpass("Password:", PASSWORD_TIMEOUT); pass = tgetpass("Password:", PASSWORD_TIMEOUT * 60);
#endif /* USE_GETPASS */ #endif /* USE_GETPASS */
#endif /* HAVE_SKEY */ #endif /* HAVE_SKEY */
if (!pass || *pass == '\0') if (!pass || *pass == '\0')

4
sudo.h
View File

@@ -141,10 +141,10 @@
#endif #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 #ifndef PASSWORD_TIMEOUT
# define PASSWORD_TIMEOUT 300 # define PASSWORD_TIMEOUT 5
#endif #endif
/* /*