Bug 2926 - sysklogd: syslog.conf should not have tabs within the selector field
Summary: sysklogd: syslog.conf should not have tabs within the selector field
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: 1.3
Hardware: All x86_64
: Medium normal
Target Milestone: 1.3 M4
Assignee: Mihai Lindner
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-09 14:46 UTC by Mihai Lindner
Modified: 2012-08-29 10:44 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
syslog.conf on master:2dec760b79bb7e2e79c33c5127fa64685bd86a18 (1.55 KB, application/octet-stream)
2012-08-09 14:46 UTC, Mihai Lindner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Lindner 2012-08-09 14:46:07 UTC
Created attachment 684 [details]
syslog.conf on master:2dec760b79bb7e2e79c33c5127fa64685bd86a18

Currently the syslog.conf file contains tabs / spaces, within the selector field. (current syslog.conf attached). On LSB images (afaik), where sysklogd is used, syslog is not creating /var/log/messages and, on restart, syslog reports errors of unknown facilities or priorities (e.g. noone, noice, new).

Tabs or spaces should be used in syslog.conf only when separating selectors from actions. From sysklogd's syslog.conf.5 man page:
"""
Every rule consists of two fields, a _selector_ field and an _action_ field. These two fields are separated by one or more spaces or tabs. The selector field specifies a pattern of facilities and priorities belonging to the specified action.
[...]
The selector field consists of two parts, a _facility_ and a _priority_, separated by a period (``.'').
"""
Comment 1 Laurentiu Serban 2012-08-12 22:11:41 UTC
Setting version to 1.3
Comment 2 Mihai Lindner 2012-08-13 13:09:08 UTC
Patch sent to oe-core.
Comment 4 Mihai Lindner 2012-08-29 10:44:06 UTC
.