From 0e44773240e01476b2709f9d206b86d5dfecffcf Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 16 Sep 2008 10:02:51 +0200 Subject: https://bugzilla.redhat.com/show_bug.cgi?id=447928 All networking scripts from /etc/sysconfig/network-scripts call logger without full path. This can prevent system from booting if let's say dcc is installed when compiled with wrong parameters and installs /usr/sbin/logger (see bellow) It's not really a bug but this can be easily prevented. All /etc/init.d scripts use full path for logger network-scripts should use it also --- sysconfig/network-scripts/ifup-ppp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sysconfig/network-scripts/ifup-ppp') diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index cc462d57..3f8ea620 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -44,7 +44,7 @@ fi [ -x /sbin/pppd -o -x /usr/sbin/pppd ] || { echo $"pppd does not exist or is not executable" echo $"ifup-ppp for ${DEVICE} exiting" - logger -p daemon.info -t ifup-ppp \ + /usr/bin/logger -p daemon.info -t ifup-ppp \ $"pppd does not exist or is not executable for ${DEVICE}" exit 1 } @@ -55,7 +55,7 @@ if [ "$TYPE" = "xDSL" ] ; then adsl-start /etc/sysconfig/network-scripts/$CONFIG exit $? else - logger -p daemon.info -t ifup-ppp \ + /usr/bin/logger -p daemon.info -t ifup-ppp \ $"adsl-start does not exist or is not executable for ${DEVICE}" exit 1 fi @@ -76,12 +76,12 @@ if [ ! -f ${PEERCONF} ]; then [ -f ${CHATSCRIPT} ] || { echo $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist" echo $"ifup-ppp for ${DEVNAME} exiting" - logger -p daemon.info -t ifup-ppp \ + /usr/bin/logger -p daemon.info -t ifup-ppp \ $"/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist for ${DEVICE}" exit 1 } fi - logger -s -p daemon.notice -t ifup-ppp \ + /usr/bin/logger -s -p daemon.notice -t ifup-ppp \ $"Setting up a new ${PEERCONF} config file" if [ -f /etc/ppp/peers/${DEVICE} ]; then cp -f /etc/ppp/peers/${DEVICE} ${PEERCONF} @@ -141,7 +141,7 @@ else exec=exec fi -(logger -p daemon.info -t ifup-ppp \ +(/usr/bin/logger -p daemon.info -t ifup-ppp \ $"pppd started for ${DEVNAME} on ${MODEMPORT} at ${LINESPEED}" &)& $exec pppd $opts ${MODEMPORT} ${LINESPEED} \ -- cgit v1.2.1