summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog
AgeCommit message (Collapse)Author
2012-01-15When we only rotate a log file once a month, the "next rotate" outputPeter Hessler
shows the current month, even when that date has passed. Fix to show the correct rotation date. pointed out by jeremy@ OK jeremy@, guenther@, miod@
2011-09-26use, as far as possible, the same notation for date strings as otherJason McIntyre
manual pages; whilst here, a little clean up for clarity ok millert
2011-09-16after some thought, i think it unlikely that we will need to specifyJason McIntyre
a revision number for ISO 8601; in addition, the revision number makes the text unwieldy when discussing the standard in a casual manner. therefore change the macro from -8601-4 to simply -8601, which will output "ISO 8601". i'll get kristaps or ingo to make the change upstream to mandoc. discussed with/ok millert
2011-09-16use .St here for ISO 8601 references; ok millertJason McIntyre
2011-05-19sync manpage and comment with reality. From Nathanael Rensen.lum
ok millert@
2010-07-24Include pid file name in error message for a failed kill(). Prompted byNicholas Marriott
PR 6288. ok deraadt
2010-03-20The newsyslog(8) utility used to keep one archived log file more thanIngo Schwarze
requested; bug reported and patch sent by David Alten. I resolved the problem in a different way, also fixing the following additional issue: When you reduced the "count" in newsyslog.conf(5), the archived logs with higher numbers got orphaned and never deleted. Nic fixed another off-by-one error in this patch, thanks! "I like it; definitely cleaner" DAlten at friedkin dot com ok nicm@
2009-11-28The first paragraph of the DESCRIPTION had multiple issues,Ingo Schwarze
so rewrite it from scratch. Joint work with jmc@. Originally triggered by lars dot curator at gmail dot com by requesting the addition of the word "rotate", also using some observations from matthew at dempsky dot org. OK jmc@ ":-)" sthen@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-10Correct error message when fclose() fails. From Brian Poole.Todd C. Miller
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2006-12-11rfc 3834 support: Auto-Submitted: auto-generated on lots of things; from ↵Theo de Raadt
Tamas TEVESZ; ok millert
2006-08-10missing full stop; from matt jibsonJason McIntyre
2006-05-23some clarifications for the "size" field + cleanup;Jason McIntyre
based on a diff from ingo schwarze;
2005-11-30timezone -> time zoneJason McIntyre
2005-03-02sort options while here;Jason McIntyre
2005-03-02rework some .Ss section as .Sy: groff does not like .Ss's in the middleJason McIntyre
of lists;
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-07-11Make newsyslog(8) deal correctly with a count of 0 in newsyslog.conf.Todd C. Miller
Based on a diff from Matthew Gream.
2004-05-10prettyTheo de Raadt
2004-04-09If no user/group is specified for the log file in newsyslog.conf,Todd C. Miller
use the uid/gid of the existing log file. OK deraadt@
2004-04-06Set mode and ownership when renaming file -> file.0 like we do whenTodd C. Miller
moving the file across filesystems or renaming from file.0 -> file.1. Problem noticed by mpech@
2004-04-05o use mode_t, not int for permissions.Todd C. Miller
o use strtol() instead of sscanf() to parse numbers in config file This has been sitting in my tree for a long time...
2004-01-23`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))Jason McIntyre
discussed with todd@
2003-12-16Avoid segmentation fault when empty commands are specified in theOtto Moerbeek
config file; resolves PR 3578. ok deraadt@ millert@
2003-07-25When parser_file() fails, print correct line number.Mike Pechkin
millert@ ok
2003-07-01Add support for -a dirs on different filesystems.Todd C. Miller
From FreeBSD via S. Deinhard.
2003-06-26more proto fixesTheo de Raadt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-10Whoops, <= 0 should be < 0. Problem noticed by marc@Todd C. Miller
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-09o replace remaining strtoul() with strtol() and check for < 0Todd C. Miller
o use %lld, not %qd in printf and scanf o fix some whitespace issues
2003-06-09Use strtol() not strtoul() so we can detect a negative number in a pid file.Todd C. Miller
2003-06-09Need to include time.h to get ctime() proto.Todd C. Miller
2003-06-03terms 3 & 4 cleanup based on "terms" fileTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-05-15Fix some typos, clarify a few bits, and fix a display issue with `:'.Todd C. Miller
Based on a patch rom Brian Poole
2003-05-15From Brian PooleTodd C. Miller
o fix typos o remove a redundant check for verbose
2003-04-25check asprintf return value for error, as the pointer is not guaranteedPeter Valchev
to be NULL in such case; ok millert
2003-02-12Add support for rotating files at a specific time; from FreeBSDTodd C. Miller
2003-02-09typos;Jason McIntyre
2003-01-25it is 2003 nowTodd C. Miller
2003-01-25Move parsing of the monitor notification user with the rest of theTodd C. Miller
optional arguments and add some sanity checking (if the M flag is specified a notification user must be specified as well). Also make the -n flag work in conjunction with -m and make verbose mode more monitor-friendly. deraadt@ OK
2003-01-25Make monitor section match the actual code.Todd C. Miller
2003-01-06typo; jmc@prioris.mini.pw.edu.plTheo de Raadt
2002-12-23Display offending line number in error messages.Todd C. Miller
Based on a patch from Sam Smith.
2002-11-27typo; Tor HoughtonTodd C. Miller
2002-11-07Sigh, sizes are in KB, not bytes, which made the cutoff size forTodd C. Miller
rotating a file 512KB instead of 512 bytes, as was intended. Change things to deal in bytes internally and drop the cutoff to 256 bytes.
2002-09-21When rotating files or checking the age of a file, check for bothTodd C. Miller
compressed and uncompressed logs but consult the flags to see which we one prefer should both exist. This keeps things from getting hosed if someone compresses or uncompresses one of the archived log files.