1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.sbin/newsyslog
Ed Schouten 23e591f485 Properly patch up dirname()/basename() calls to not clobber ent->log.
It turns out that we had a couple of more calls to dirname()/basename()
in newsyslog(8) that assume the input isn't clobbered. This is bad,
because it apparently breaks log rotation now that the new dirname()
implementation has been merged.

Fix this by first copying the input and then calling
dirname()/basename(). While there, improve the naming of variables in
this function a bit.

Reported by:	Ryan Steinmetz, gjb
Reviewed by:	bdrewery, allanjude
Differential Revision:	https://reviews.freebsd.org/D7838
2016-09-09 07:10:50 +00:00
..
tests Expect sub testcases 2-4 in :tests_time_rotate to fail today due to changes 2016-08-29 18:46:04 +00:00
extern.h
Makefile Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
newsyslog.8 Make it more explicitly clear that -t will not change filename. 2014-09-23 13:58:39 +00:00
newsyslog.c Properly patch up dirname()/basename() calls to not clobber ent->log. 2016-09-09 07:10:50 +00:00
newsyslog.conf.5 newsyslog.conf: allow to configure the signal using the signal name. 2015-10-24 13:55:12 +00:00
pathnames.h Add xz(1) support to newsyslog. 2011-01-31 10:57:54 +00:00
ptimes.c