aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-01-28 11:15:06 -0500
committerBill Nottingham <notting@redhat.com>2009-01-28 11:15:06 -0500
commit8c627efcbd559591360503deb4231a25ffa23190 (patch)
treeba41c18154f2fad8311a973f4bbc90eb2fd7f569 /sysconfig/network-scripts/ifup-aliases
parent6baf5fc0c6696bb5f1c721ca7b9403236e88fea2 (diff)
downloadinitscripts-8c627efcbd559591360503deb4231a25ffa23190.tar
initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.gz
initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.bz2
initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.xz
initscripts-8c627efcbd559591360503deb4231a25ffa23190.zip
Use a leading path marker when sourcing files. (#482826)
bash 4 breaks the prior code.
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 4c03941e..de4454e9 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -129,7 +129,7 @@ eval ` (
exit 1
}
eval ` (
- . $PARENTCONFIG;
+ . ./$PARENTCONFIG;
echo default_NETMASK=$NETMASK\;;
echo default_BROADCAST=$BROADCAST\;;
echo default_GATEWAY=$GATEWAY\;;
@@ -321,7 +321,7 @@ if [ "$BASH_VERSINFO" ]; then shopt -s nullglob; else allow_null_glob_expansion=
for FILE in ifcfg-${parent_device}:* ; do
is_ignored_file "$FILE" && continue
ini_env;
- . $FILE;
+ . ./$FILE;
[ -z "$DEVICE" ] && DEVICE=${FILE##ifcfg-}
[ "$ONPARENT" != "no" -a "$ONPARENT" != "NO" ] && new_interface;
unset DEVICE
@@ -330,7 +330,7 @@ done
for FILE in ifcfg-${parent_device}-range* ; do
is_ignored_file "$FILE" && continue
ini_env;
- . $FILE;
+ . ./$FILE;
ipaddr_prefix=${IPADDR_START%.*}
ipaddr_startnum=${IPADDR_START##*.}