diff options
author | bapt <bapt@FreeBSD.org> | 2015-10-31 09:45:11 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-10-31 09:45:11 +0000 |
commit | cab8578a147d77880fe77357266fc36b42e943e3 (patch) | |
tree | 4a4c7ed892ca13d8f39edf8959b4f8dc330444b5 /usr.sbin | |
parent | 6471aad35da7f3d1f4c3979c56bc592da2121494 (diff) | |
download | FreeBSD-src-cab8578a147d77880fe77357266fc36b42e943e3.zip FreeBSD-src-cab8578a147d77880fe77357266fc36b42e943e3.tar.gz |
newsyslog: treat 'c' flag in the config as 'C'
When -C was introduced in r114137 the plan was to have -C and -c being used for
"create" due to a typo in FreeBSD <= 4.8 a temporary compatibility hack has been
added to make -c being like -G aka GLOB and a warning was issued for the user to
be aware of the futur change for -c.
12 years later it is more than time to remove that hack and finish the what was
intent in r114137
Submitted by: Alexandre Perrin <alex@kaworu.ch>
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D4000
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index f405bf8..9490cda 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -1271,20 +1271,6 @@ no_trimat: working->flags |= CE_BINARY; break; case 'c': - /* - * XXX - Ick! Ugly! Remove ASAP! - * We want `c' and `C' for "create". But we - * will temporarily treat `c' as `g', because - * FreeBSD releases <= 4.8 have a typo of - * checking ('G' || 'c') for CE_GLOB. - */ - if (*q == 'c') { - warnx("Assuming 'g' for 'c' in flags for line:\n%s", - errline); - warnx("The 'c' flag will eventually mean 'CREATE'"); - working->flags |= CE_GLOB; - break; - } working->flags |= CE_CREATE; break; case 'd': |