diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-07-15 07:31:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-07-15 07:31:42 +0000 |
commit | dc989913fe3e38b03c3442478026eeb20d76fece (patch) | |
tree | 8564765a8253eb9c8a54fed3780797bb98963ddf /sys-apps/iproute2/files | |
parent | ppc stable (diff) | |
download | gentoo-2-dc989913fe3e38b03c3442478026eeb20d76fece.tar.gz gentoo-2-dc989913fe3e38b03c3442478026eeb20d76fece.tar.bz2 gentoo-2-dc989913fe3e38b03c3442478026eeb20d76fece.zip |
Make routef a little saner #139853 by Lars Strojny.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'sys-apps/iproute2/files')
-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 |