2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 21:38:05 +00:00

fixed some comments

This commit is contained in:
Todd C. Miller 1995-07-06 23:35:09 +00:00
parent fc15f54aa4
commit 77577c970c

View File

@ -218,7 +218,6 @@ static int check_timestamp()
/* /*
* if all the directories are stat()able * if all the directories are stat()able
*/ */
/* XXX - make this readable!!! */
if (timedir_is_good) { if (timedir_is_good) {
/* /*
* last component in _PATH_SUDO_TIMEDIR must be owned by root * last component in _PATH_SUDO_TIMEDIR must be owned by root
@ -232,7 +231,8 @@ static int check_timestamp()
} else if (stat(timestampfile, &statbuf)) { } else if (stat(timestampfile, &statbuf)) {
/* timestamp file does not exist? */ /* timestamp file does not exist? */
timestamp_is_old = 2; /* return (2) */ timestamp_is_old = 2; /* return (2) */
} else { /* otherwise, check the time */ } else {
/* check the time against the timestamp file */
now = time((time_t *) NULL); now = time((time_t *) NULL);
if (TIMEOUT && now - statbuf.st_mtime < 60 * TIMEOUT) if (TIMEOUT && now - statbuf.st_mtime < 60 * TIMEOUT)
/* check for bogus time on the stampfile */ /* check for bogus time on the stampfile */