History log of /freebsd/usr.sbin/newsyslog/newsyslog.c (Results 176 – 200 of 347)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2f5d9e29 03-Mar-2003 Garance A Drosehn <gad@FreeBSD.org>

Collapse two more parameters to dotrim() into the 'ent' parameter that is
already there. This should not effect anything.

MFC after: 3 weeks


# e2fe500e 03-Mar-2003 Garance A Drosehn <gad@FreeBSD.org>

Change to using uid_t and gid_t instead of int. Also change this won't
bother doing a chmod() if neither of these two fields are set.

Obtained from: OpenBSD
MFC after: 3 weeks


# 7cf31d2f 03-Mar-2003 Garance A Drosehn <gad@FreeBSD.org>

Fix the interactions between specific log files given on the command line,
and config-file entries which specify a filename-pattern (glob). It is
still not perfectly-right, but at least it isn't com

Fix the interactions between specific log files given on the command line,
and config-file entries which specify a filename-pattern (glob). It is
still not perfectly-right, but at least it isn't completely-wrong.

Reviewed by: no objections on freebsd-arch
MFC after: 3 weeks
MFC addendum: (or after the code-freeze of 4.x is lifted)

show more ...


# 9fb022b6 03-Mar-2003 Garance A Drosehn <gad@FreeBSD.org>

Add a command-line option of '-R somename', which indicates that newsyslog
should rotate all files given on the command, even if they don't seem to
need to be rotated. This would be used by some oth

Add a command-line option of '-R somename', which indicates that newsyslog
should rotate all files given on the command, even if they don't seem to
need to be rotated. This would be used by some other command that decides
the given log file(s) should be rotated, but wants the "how" of that rotation
to be determined by entries to newsyslog. Wes expects to change syslogd to
take advantage of this. Man page will be updated after we're sure this is
all working the way we want it to.

Reviewed by: no objections on freebsd-arch
MFC after: 3 weeks
MFC addendum: (or after the code-freeze of 4.x is lifted)

show more ...


# f2c3715a 02-Mar-2003 Garance A Drosehn <gad@FreeBSD.org>

Add a command-line option of '-s', which indicates that newsyslog should
not send a signal to any processes. Also add a config-file flag of 'N' or
'n', which indicates that the given logfile has no

Add a command-line option of '-s', which indicates that newsyslog should
not send a signal to any processes. Also add a config-file flag of 'N' or
'n', which indicates that the given logfile has no process which needs a
signal when it is rotated. Both of these are based on changes NetBSD
has made, although the implementation is somewhat different.

PR: bin/36553 (2nd half)
Reviewed by: no objections on freebsd-arch
Obtained from: NetBSD (in spirit, at least)
MFC after: 3 weeks

show more ...


# 5ac30d6d 26-Feb-2003 Garance A Drosehn <gad@FreeBSD.org>

Fix an error which caused 'free(): error: chunk is already free'
if an entry in the config file included flag 'G'.

MFC after: 3 weeks


# 39d01413 24-Feb-2003 Garance A Drosehn <gad@FreeBSD.org>

Check the value given for number-of-logs to keep in config-file entries,
and error-out if the value is negative (avoiding an infinite loop).

PR: bin/30654 (part of it)
MFC after: 3 weeks


# 27f1bc0c 24-Feb-2003 Garance A Drosehn <gad@FreeBSD.org>

1) Fix so -a honors the -n ("do nothing") option. Before, if the directory
given for -a did not exist, then newsyslog would always try to create
it, even if -n was specified.
2) When -a proces

1) Fix so -a honors the -n ("do nothing") option. Before, if the directory
given for -a did not exist, then newsyslog would always try to create
it, even if -n was specified.
2) When -a processing *does* create the directory, have it check the result
from mkdir(), and immediately error-out if that failed.

PR: bin/46974
MFC after: 3 weeks

show more ...


# debfc5e1 24-Feb-2003 Garance A Drosehn <gad@FreeBSD.org>

Minor style fix. Add parenthesis around 'return' values.

Reviewed by: md5
MFC after: 3 weeks


# 93943fff 24-Feb-2003 Garance A Drosehn <gad@FreeBSD.org>

Add the idea of a "default rotate action", which will be used if a file is
specified at runtime, but that filename is not listed in the newsyslog.conf
file. This default-action can be changed by hav

Add the idea of a "default rotate action", which will be used if a file is
specified at runtime, but that filename is not listed in the newsyslog.conf
file. This default-action can be changed by having a line in newsyslog.conf
with the filename of "<default>". Before this change, the program would
quietly ignore the given file. An update to the man page will be written
after I finish some other updates to newsyslog.c.

Reviewed by: no objections from freebsd-arch
MFC after: 3 weeks

show more ...


Revision tags: release/5.0.0_cvs, release/5.0.0
# 35c45e66 21-Dec-2002 Tom Rhodes <trhodes@FreeBSD.org>

Make newsyslog(8) print the correct date when the logs are turned over.

PR: 46395
Submitted by: maxim
MFC: eventually


# bffa9117 15-Dec-2002 Maxim Sobolev <sobomax@FreeBSD.org>

Add a new `W' flag, that when used in conjunction with the `Z' flag or the
`J' flag means that newsyslog should wait for previously started compression
jobs to complete before starting a new one for

Add a new `W' flag, that when used in conjunction with the `Z' flag or the
`J' flag means that newsyslog should wait for previously started compression
jobs to complete before starting a new one for this entry. When it is used
along with the `G' flag, in the case when several logfiles match the pattern
and should be compressed, the newsyslog will compress logs one by one,
ensuring that only one compression job is running at a time.

This prevents newsyslog(8) from overloading system by starting several
compression jobs on big files simultaneously.

Sponsored by: Porta Software Ltd
MFC after: 2 weeks

show more ...


# f2562be0 11-Dec-2002 Maxim Sobolev <sobomax@FreeBSD.org>

- Allow comments to be placed at the end of configuration line.

Sponsored by: Porta Software Ltd
Approved by: re
MFC after: 2 weeks


# 2e01a2be 14-Nov-2002 Maxim Sobolev <sobomax@FreeBSD.org>

Add a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
the specified filename of the log to be rotated is in fact shell glob
pattern. In this case, all files matching this pattern

Add a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
the specified filename of the log to be rotated is in fact shell glob
pattern. In this case, all files matching this pattern will be rotated
using the same options. Useful in the case when there is no pre-defined
name for the logfiles (e.g. xtradius, samba etc).

Sponsored by: PortaOne Software Ltd
MFC after: 2 weeks

show more ...


# a9a25f59 16-Oct-2002 Maxim Konovalov <maxim@FreeBSD.org>

Fix getopt(3) optstring: remove a flag we does not handle.

PR: bin/44066
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after: 1 week


Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 21ee7961 01-Jul-2002 Maxim Konovalov <maxim@FreeBSD.org>

Remove the last EOF spaces I missed in rev. 1.43.

MFC after: 1 week


# cc375815 03-May-2002 Maxim Konovalov <maxim@FreeBSD.org>

style(9): sort includes, remove EOL spaces.

MFC after: 1 week


# 021e53b8 03-May-2002 Maxim Konovalov <maxim@FreeBSD.org>

wait(2) for compress_log() processes to complete before exit.

Spotted by: Grigoriy Strokin <grg@isabase.philol.msu.ru>
Reviewed by: -current
MFC after: 1 month


# 669d6631 10-Apr-2002 Sheldon Hearn <sheldonh@FreeBSD.org>

Close a very small window during which new (empty) instances of rotated log
files are owned by the caller of newsyslog (usually root:wheel) even if
alternative ownerships were specified in newsyslog.

Close a very small window during which new (empty) instances of rotated log
files are owned by the caller of newsyslog (usually root:wheel) even if
alternative ownerships were specified in newsyslog.conf.

Note that this is part of a wider problem which is fully addressed in
OpenBSD. Anyone with the time and inclination to incorporate the full
fix for the wider problem will receive no complaints from me and should
feel free to walk all over this delta.

PR: bin/36738
MFC after: 1 week

show more ...


# aeeb2b2b 02-Apr-2002 Crist J. Clark <cjc@FreeBSD.org>

Produce a different error message for mktime(3) failure than for bad
newsyslog.conf syntax.

PR: bin/36641


# 115f46ff 05-Feb-2002 Peter Pentchev <roam@FreeBSD.org>

Fix -F with logfiles rotated on time only.

Approved by: silence on -audit
MFC after: 1 month


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# a4482d5c 14-Nov-2001 David E. O'Brien <obrien@FreeBSD.org>

Fix the type of the NULL arg to execl().


# 904cc0c4 31-Jul-2001 David E. O'Brien <obrien@FreeBSD.org>

jhb says a 10 line change containing casts is more invasive than a 28 line
change.


# f1d4135b 31-Jul-2001 David E. O'Brien <obrien@FreeBSD.org>

Use the POSIX syntax for chown.

Submmited by: garrett


# ef404327 30-Jul-2001 Garrett Wollman <wollman@FreeBSD.org>

Simplify (and hopefully clarify) some date-parsing arithmetic.


12345678910>>...14