Non-existent log files cannot be chown'ed
Bug #290127 reported by
clearblueskies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysklogd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sysklogd
Ubuntu Hardy Heron
sysklogd 1.5-1ubuntu1
Use case: I am using a laptop on which I do not want to save the logs from the last session, so I delete them every time powering down. However, when booting the next time the console is cluttered with error messages because of line 74 of /etc/init.
"chown ${USER}:adm $l"
Perhaps this could be surrounded with a file existence test?
if [ -e $l ]; then
chown ${USER}:adm $l
fi
This check would eliminate error messages from cluttering the console on boot.
Thank you.
To post a comment you must log in.
Or maybe the intention of the script is to set the user:group, in which case a new empty file should be created if it doesn't exist already.
touch $l
chown ${USER}:adm $l