summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-04-15 13:44:05 +0000
committerphk <phk@FreeBSD.org>2001-04-15 13:44:05 +0000
commitd044f40e46f4ae97f045f27e1c03d847a8a894da (patch)
tree0b6e50176a8b3f58954d15773b9dea5601bdd67d
parentb9bfbc7bfa06fc8bf841ad12d3438b98ee0c9a43 (diff)
downloadFreeBSD-src-d044f40e46f4ae97f045f27e1c03d847a8a894da.zip
FreeBSD-src-d044f40e46f4ae97f045f27e1c03d847a8a894da.tar.gz
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>
-rw-r--r--etc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 5ea72d7..13ffc82 100644
--- a/etc/rc
+++ b/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
OpenPOWER on IntegriCloud