mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
fixed some comments
This commit is contained in:
parent
fc15f54aa4
commit
77577c970c
4
check.c
4
check.c
@ -218,7 +218,6 @@ static int check_timestamp()
|
||||
/*
|
||||
* if all the directories are stat()able
|
||||
*/
|
||||
/* XXX - make this readable!!! */
|
||||
if (timedir_is_good) {
|
||||
/*
|
||||
* last component in _PATH_SUDO_TIMEDIR must be owned by root
|
||||
@ -232,7 +231,8 @@ static int check_timestamp()
|
||||
} else if (stat(timestampfile, &statbuf)) {
|
||||
/* timestamp file does not exist? */
|
||||
timestamp_is_old = 2; /* return (2) */
|
||||
} else { /* otherwise, check the time */
|
||||
} else {
|
||||
/* check the time against the timestamp file */
|
||||
now = time((time_t *) NULL);
|
||||
if (TIMEOUT && now - statbuf.st_mtime < 60 * TIMEOUT)
|
||||
/* check for bogus time on the stampfile */
|
||||
|
Loading…
x
Reference in New Issue
Block a user