OpenBSD CVS

CVS log for src/usr.bin/newsyslog/newsyslog.c


[BACK] Up to [local] / src / usr.bin / newsyslog

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_2_6_BASE


Revision 1.21 / (download) - annotate - [select for diffs], Wed Oct 13 17:24:23 1999 UTC (24 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.20: +9 -6 lines
Diff to previous 1.20 (colored)

age_old_log() now takes an int * as a parameter so it can return -1
on failure w/o the caller thinking the difference in mtime is -1.
Just set modtime to 0 in this case in the caller which effectively
ignores it.  This fixes a problem where if there was now foo.0 file
newsyslog would rotate an empty file.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.