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:
markj 2013-06-02 01:10:49 +00:00
parent c1cfd940d5
commit 44ec97062d

View File

@ -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;
}