freebsd-ports/net/xtraceroute/files/patch-share::xtraceroute-resolve-location.sh.in
Volker Stolz fcc5e609e5 - use gethostname() instead of uname(): the latter returns only returns
the first 32 chars of the hostname
- patch helper-script to generate less bogus intermediate output
- NB: This port will still register a wrong dependency on dns/host when
    dns/bind is installed
2004-05-08 11:20:46 +00:00

11 lines
398 B
Bash

--- share/xtraceroute-resolve-location.sh.in.orig Fri May 7 15:01:36 2004
+++ share/xtraceroute-resolve-location.sh.in Fri May 7 15:01:57 2004
@@ -34,7 +34,7 @@
BIND)
FIRST=yes
#while target contains a dot.
- while [ `echo $TARGET | cut -s -f1- -d.` ] || [ $FIRST = yes ]
+ while [ -n "$TARGET" ] && [ `echo $TARGET | cut -s -f1- -d.` ] || [ $FIRST = yes ]
do
FIRST=no
#echo $TARGET