On 2008-11-03 04:04:50 +0000, Paul Martin wrote:
> That shouldn't be possible without getting an error:
> 
>         if ((year != 1900) && (year < 1970 || year > 2100)) {
>             message(MESS_ERROR, "bad year %d for file %s in state file %s\n",
>                     year, argv[0], stateFilename);
>             fclose(f);
>             return 1;
>         }

Sorry, I've tried and I get an error (in fact, after checking in the
shell history, it seems that I hadn't tested logrotate with these 1904
dates: when I noticed all these 1904 dates, I just removed the status
file as I thought it would have been simpler than fixing all these
dates, then ran logrotate, and I didn't get an error for this missing
status file, but this may be expected).

BTW, I should have seen this error in the anacron messages (a bit
hidden amongst other spurious error messages, unfortunately).

Now, the fact that 1904 is ignored is quite annoying. Well, the best
solution would be that logrotate should never put such an old date in
/var/lib/logrotate/status.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to