Changeset View
Changeset View
Standalone View
Standalone View
contrib/openbsm/libauditd/auditd_lib.c
Show First 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | while ((dp = readdir(dirp)) != NULL) { | ||||
tstamp < JAN_01_2000) | tstamp < JAN_01_2000) | ||||
tstamp = stbuf.st_mtime; | tstamp = stbuf.st_mtime; | ||||
/* | /* | ||||
* If the time stamp is older than Jan 1, 2000 then | * If the time stamp is older than Jan 1, 2000 then | ||||
* update the mtime of the trail file to the current | * update the mtime of the trail file to the current | ||||
* time. This is so we don't prematurely remove a trail | * time. This is so we don't prematurely remove a trail | ||||
* file that was created while the system clock reset | * file that was created while the system clock reset | ||||
* to the * "beginning of time" but later the system | * to the "beginning of time" but later the system | ||||
* clock is set to the correct current time. | * clock is set to the correct current time. | ||||
*/ | */ | ||||
if (current_time >= JAN_01_2000 && | if (current_time >= JAN_01_2000 && | ||||
tstamp < JAN_01_2000) { | tstamp < JAN_01_2000) { | ||||
struct timeval tv[2]; | struct timeval tv[2]; | ||||
tstamp = stbuf.st_mtime = current_time; | tstamp = stbuf.st_mtime = current_time; | ||||
TIMESPEC_TO_TIMEVAL(&tv[0], | TIMESPEC_TO_TIMEVAL(&tv[0], | ||||
▲ Show 20 Lines • Show All 785 Lines • Show Last 20 Lines |