aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-05-10 15:11:07 -0400
committerBill Nottingham <notting@redhat.com>2011-05-10 15:11:07 -0400
commit7bbed9542c60bdece7d86460dff16ce0f4a1ae26 (patch)
tree409f5ed2b354ad7ae9f6575fbb6c9bbba4eb1b95
parent81b50ecb6be1df83b45c6ed868e855c6d11bf135 (diff)
downloadinitscripts-7bbed9542c60bdece7d86460dff16ce0f4a1ae26.tar
initscripts-7bbed9542c60bdece7d86460dff16ce0f4a1ae26.tar.gz
initscripts-7bbed9542c60bdece7d86460dff16ce0f4a1ae26.tar.bz2
initscripts-7bbed9542c60bdece7d86460dff16ce0f4a1ae26.tar.xz
initscripts-7bbed9542c60bdece7d86460dff16ce0f4a1ae26.zip
Use LC_ALL=C when calling sed. (https://bugs.mageia.org/show_bug.cgi?id=1216, via <sander.lepik@eesti.ee>)
-rwxr-xr-xrc.d/init.d/network6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index dd4e7700..ac30b8f3 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -44,11 +44,11 @@ cd /etc/sysconfig/network-scripts
# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
- LANG=C sed -e "$__sed_discard_ignored_files" \
+ LC_ALL=C sed -e "$__sed_discard_ignored_files" \
-e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
-e '/ifcfg-[A-Za-z0-9#\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
- LANG=C sort -k 1,1 -k 2n | \
- LANG=C sed 's/ //')
+ LC_ALL=C sort -k 1,1 -k 2n | \
+ LC_ALL=C sed 's/ //')
rc=0
# See how we were called.