summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog/newsyslog.c
Commit message (Collapse)AuthorAgeFilesLines
* Doh! Actually read the patch I applied and see what it was *trying* to do,jkh1996-09-091-4/+5
| | | | | then make it do that. Error-of-my-ways-pointed-out-by: Bob Willcox <bob@luke.pmr.com>
* PR#2724 in NetBSD notes that newsyslog save log files even if the numberjkh1996-09-061-6/+15
| | | | | | of copies to save is zero. Incorporate suggested fix with some stylistic cleanup to make the resulting code more readable. Submitted-By: Kenneth Stailey <kstailey@dol-esa.gov>
* Added function prototypes and removed in-line prototypes of standardalex1996-06-081-27/+37
| | | | functions such as malloc and time.
* Fix uninitialized variable that caused a core dump if /etc/newsyslog.confalex1996-06-071-2/+2
| | | | | | was empty. Closes PR bin/1300. Found by: Brian Tao <taob@io.org>
* Submitted by: charnier@lirmm.fr (Philippe Charnier)graichen1996-01-161-80/+48
| | | | | | | | 1) correct MAX_PID according to system definition. 2) replace fprintf(stderr,...)/perror/exit by 4.4 equivalence. 3) make strings enough larger so they can't overflow: MAXHOSTNAMELEN for host and MAXPATHLEN for filenames. 4) call execl with correct parameters (compress -> gzip).
* Obtained from: NetBSD (PR#1906)graichen1996-01-091-4/+4
| | | | removed date formatting glitch in newsyslog
* Obtained from: NetBSDgraichen1996-01-051-0/+568
imported the newsyslog command from NetBSD - it make the "rotation" of the logfiles much simpler (it is currently done by "hand" in the /etc/[daily,weekly,monthly] scripts) - now it will be done by invoking newsyslog every hour which is very customizable via a /etc/newsyslog.conf file
OpenPOWER on IntegriCloud