summaryrefslogtreecommitdiff
path: root/sys-apps/baselayout/files/baselayout-1.12.14-iproute.patch
blob: 8d1488623410d5c8d1ea3b700da406e57928c7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
r3179 | vapier | 2010-10-03 17:20:25 -0400 (Sun, 03 Oct 2010) | 1 line

fix infinite recursion with ip invocation #339013 by Krzysztof Olędzki

Index: net-scripts/net/iproute2.sh
===================================================================
--- lib/rcscripts/net/iproute2.sh (revision 3178)
+++ lib/rcscripts/net/iproute2.sh (revision 3179)
@@ -5,7 +5,8 @@
 # Fix any potential localisation problems
 # Note that LC_ALL trumps LC_anything_else according to locale(7)
 ip() {
-	LC_ALL=C ip "$@"
+	# use the full path so we don't recurse into ip()
+	LC_ALL=C $(type -P ip) "$@"
 }
 iproute2_tunnel() {
 	LC_ALL=C ip tunnel "$@"