aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2008-09-16 10:02:51 +0200
committerBill Nottingham <notting@redhat.com>2008-09-16 20:05:00 -0400
commit0e44773240e01476b2709f9d206b86d5dfecffcf (patch)
tree9930231a2e81780edd330d213f544a0c852d2e31 /sysconfig/network-scripts/ifup-ippp
parent2352139e72dfe38a3993fc5b7509544d0a2492e2 (diff)
downloadinitscripts-0e44773240e01476b2709f9d206b86d5dfecffcf.tar
initscripts-0e44773240e01476b2709f9d206b86d5dfecffcf.tar.gz
initscripts-0e44773240e01476b2709f9d206b86d5dfecffcf.tar.bz2
initscripts-0e44773240e01476b2709f9d206b86d5dfecffcf.tar.xz
initscripts-0e44773240e01476b2709f9d206b86d5dfecffcf.zip
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
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index 628f8b0a..9e2f3376 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -30,20 +30,20 @@ fi
# check that ipppd is available for syncppp
if [ "$ENCAP" = "syncppp" ]; then
if [ ! -x /usr/sbin/ipppd -a ! -x /sbin/ipppd ] ; then
- logger -p daemon.info -t ifup-ippp "ipppd does not exist or is not executable"
+ /usr/bin/logger -p daemon.info -t ifup-ippp "ipppd does not exist or is not executable"
exit 1
fi
fi
# check that isdnctrl is available
if [ ! -x /usr/sbin/isdnctrl -a ! -x /sbin/isdnctrl ] ; then
- logger -p daemon.info -t ifup-ippp "isdnctrl does not exist or is not executable"
+ /usr/bin/logger -p daemon.info -t ifup-ippp "isdnctrl does not exist or is not executable"
exit 1
fi
# check all ISDN devices
if ! isdnctrl list all >/dev/null 2>&1 ; then
- logger -p daemon.info -t ifup-ippp "cannot list ISDN devices"
+ /usr/bin/logger -p daemon.info -t ifup-ippp "cannot list ISDN devices"
exit 1
fi
@@ -52,12 +52,12 @@ isdnctrl list $DEVICE >/dev/null 2>&1 && exit 0
function log_echo()
{
- logger -p daemon.info -t ifup-ippp $"$*"
+ /usr/bin/logger -p daemon.info -t ifup-ippp $"$*"
}
function log_isdnctrl()
{
- logger -p daemon.info -t ifup-ippp isdnctrl $*
+ /usr/bin/logger -p daemon.info -t ifup-ippp isdnctrl $*
isdnctrl $* >/dev/null 2>&1 || exit 1
}
@@ -338,12 +338,12 @@ function addprovider()
[ -n "$NETMASK" ] && netmask="netmask $NETMASK"
# activate ISDN device
- logger -p daemon.info -t ifup-ippp "ifconfig $DEVICE $IPADDR pointopoint $GATEWAY $netmask up"
+ /usr/bin/logger -p daemon.info -t ifup-ippp "ifconfig $DEVICE $IPADDR pointopoint $GATEWAY $netmask up"
ifconfig $DEVICE $IPADDR pointopoint $GATEWAY $netmask up >/dev/null 2>&1
if [ "$ENCAP" = "syncppp" ]; then
# start ipppd daemon
- logger -p daemon.info -t ifup-ippp "ipppd $options $netmask"
+ /usr/bin/logger -p daemon.info -t ifup-ippp "ipppd $options $netmask"
ipppd $options $netmask >/dev/null 2>&1
# start ibod daemon