diff options
author | gad <gad@FreeBSD.org> | 2004-06-07 21:18:09 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-06-07 21:18:09 +0000 |
commit | 217bb961dbcafb033404a3a249ee50691ff5bd88 (patch) | |
tree | 64f5a279bc9e22c6ce1e0e5b6aee7e9f78736dcd /usr.sbin/newsyslog | |
parent | 717539c68068661ebd0d828db4a5585753bcba9f (diff) | |
download | FreeBSD-src-217bb961dbcafb033404a3a249ee50691ff5bd88.zip FreeBSD-src-217bb961dbcafb033404a3a249ee50691ff5bd88.tar.gz |
Add an "oldorder" option, so that when the default changes to "neworder",
people have a way to drop back to the previous logic.
MFC after: 13 days
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index ab3cad4..ea99374 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -805,6 +805,14 @@ parse_doption(const char *doption) #endif return (1); /* successfully parsed */ } + if (strcmp(doption, "oldorder") == 0) { +#ifdef TRY_NEWORDER + dbg_new_order = 0; +#else + warnx("NOTE: The code for 'neworder' was not compiled in."); +#endif + return (1); /* successfully parsed */ + } warnx("Unknown -D (debug) option: '%s'", doption); return (0); /* failure */ |