diff options
Diffstat (limited to 'sys-apps/iproute2/files/iproute2-2.6.16.20060323-routef-safe.patch')
-rw-r--r-- | sys-apps/iproute2/files/iproute2-2.6.16.20060323-routef-safe.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-apps/iproute2/files/iproute2-2.6.16.20060323-routef-safe.patch b/sys-apps/iproute2/files/iproute2-2.6.16.20060323-routef-safe.patch new file mode 100644 index 000000000000..a592d11a26f9 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.16.20060323-routef-safe.patch @@ -0,0 +1,17 @@ +http://bugs.gentoo.org/139853 + +diff --git a/ip/routef b/ip/routef +index db43b5d..d266e2d 100644 +--- a/ip/routef ++++ b/ip/routef +@@ -1,3 +1,9 @@ + #! /bin/sh + +-exec ip -4 ro flush scope global type unicast ++if [ -z "$*" ] ; then ++ exec ip -4 ro flush scope global type unicast ++else ++ echo "Usage: routef" ++ echo ++ echo "This script will flush the IPv4 routing table" ++fi |