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:
2
check.c
2
check.c
@@ -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
4
sudo.h
@@ -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
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user