mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
In the /etc/rc startup script a soft link is created from /var/run/log to
/dev/log like this: if [ ! -h /dev/log ]; The man page for test(1) says that the -h switch is depracated and that users should NOT rely on it being available. It suggest the -L switch instead. They both do the same thing: check for the existence of the symbolic link. PR: 26596 Submitted by: mikem <mike_makonnen@yahoo.com>
This commit is contained in:
parent
4c7da4f92c
commit
7b8467e22f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75525
2
etc/rc
2
etc/rc
@ -445,7 +445,7 @@ case ${syslogd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
# Transitional symlink (for the next couple of years :) until all
|
||||
# binaries have had a chance to move towards /var/run/log.
|
||||
if [ ! -h /dev/log ]; then
|
||||
if [ ! -L /dev/log ]; then
|
||||
# might complain for r/o root f/s
|
||||
ln -sf /var/run/log /dev/log
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user