From 217bb961dbcafb033404a3a249ee50691ff5bd88 Mon Sep 17 00:00:00 2001 From: gad Date: Mon, 7 Jun 2004 21:18:09 +0000 Subject: 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 --- usr.sbin/newsyslog/newsyslog.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr.sbin') 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 */ -- cgit v1.1