We want to stat the archived log file rather than the logfile itself.
PR: bin/179122 Submitted by: Oliver Fromme <olli@secnetix.de> MFC after: 3 days
This commit is contained in:
parent
c1cfd940d5
commit
44ec97062d
@ -2326,7 +2326,7 @@ mtime_old_timelog(const char *file)
|
||||
if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0)
|
||||
continue;
|
||||
|
||||
if (fstatat(dir_fd, logfname, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
|
||||
if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
|
||||
warn("Cannot stat '%s'", file);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user