Bug 237610 - newsyslog include any files from newsyslog.conf.d, which may be unwanted
Summary: newsyslog include any files from newsyslog.conf.d, which may be unwanted
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-27 18:40 UTC by Olexandr Davydenko
Modified: 2019-05-02 13:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olexandr Davydenko 2019-04-27 18:40:12 UTC
newsyslog include all from directories /etc/newsyslog.conf.d/ and /usr/local/etc/newsyslog.conf.d/ including files that do not need to be processed - e.g. previous versions with .bak suffix or temporary disabled by renaming.

Better to change the default /etc/newsyslog.conf to include only *.conf files instead of all by replacing
<include> /etc/newsyslog.conf.d/*
<include> /usr/local/etc/newsyslog.conf.d/*
with:
<include> /etc/newsyslog.conf.d/*.conf
<include> /usr/local/etc/newsyslog.conf.d/*.conf
Comment 1 Conrad Meyer freebsd_committer 2019-04-27 18:56:24 UTC
(Already in 12.x+ via r340318.)