=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-17- badns=true dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:18: while test $i -le `wc -l < $TMPNS`; do dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-19- badns=false dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:20:- ns=`tail +$i $TMPNS | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:21:+ ns=`tail -n +$i $TMPNS | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-22- echo ";; trying nameserver $ns" ############################################## dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-27- while test $i -lt $len; do dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:28: i=`expr $i + 1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:29:- set `tail +$i $TMPPTR | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:30:+ set `tail -n +$i $TMPPTR | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-31- inaddr=$1 host=$3 dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-32- # if not 4 numeric octets, assume it's a network address. dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:33: num=`echo $inaddr | tr . '\012' | awk '{r++} /^in-addr$/ {print r - 1}'` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-34-@@ -473,7 +473,7 @@ ############################################## dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-36- while test $i -lt $len; do dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:37: i=`expr $i + 1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:38:- set `tail +$i $TMPA | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:39:+ set `tail -n +$i $TMPA | head -1` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-40- host=$1 addr=$3 dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch:41: inaddr=`echo $addr | awk -F. '{print $4 "." $3 "." $2 "." $1 ".in-addr.arpa."}'` dlint-1.4.0/debian/patches/20-sort-tail-deprecated-syntax.patch-42- #echo "XX $inaddr PTR" ############################################## dlint-1.4.0/.pc/05-local-changes.patch/Makefile-35-dist: clean dlint-1.4.0/.pc/05-local-changes.patch/Makefile:36: d=`pwd`; d=`basename $$d`; cd ..; tar czf /tmp/$$d.tar.gz \ dlint-1.4.0/.pc/05-local-changes.patch/Makefile-37- --exclude RCS \ ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-110- dlint-1.4.0/.pc/05-local-changes.patch/dlint:111:ans=`echo $ver | awk '$1 >= 2.1 {print "ok"; exit}'` # floating point math dlint-1.4.0/.pc/05-local-changes.patch/dlint-112-if test x"$ans" != x"ok"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-116- dlint-1.4.0/.pc/05-local-changes.patch/dlint:117:dig9=`echo $ver | awk '$1 >= 9.0 {print "yes"; exit}'` # floating point math dlint-1.4.0/.pc/05-local-changes.patch/dlint-118- ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-145-domaintype () { dlint-1.4.0/.pc/05-local-changes.patch/dlint:146: lcdom=`echo "$1" | $tolower` dlint-1.4.0/.pc/05-local-changes.patch/dlint-147- case $lcdom in ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-197- dlint-1.4.0/.pc/05-local-changes.patch/dlint:198:ans=`echo $domain | $tolower | awk '/.in-addr.arpa/ {print "ok"; exit}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-199-if test x"$ans" = x"ok"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-252-responding= dlint-1.4.0/.pc/05-local-changes.patch/dlint:253:if test `wc -l < $TMPNS` -eq 1; then dlint-1.4.0/.pc/05-local-changes.patch/dlint-254- echo "WARNING: only 1 nameserver found for zone $domain" ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-259- rm -f $TMPSERIALS dlint-1.4.0/.pc/05-local-changes.patch/dlint:260: for ns in `cat $TMPNS`; do dlint-1.4.0/.pc/05-local-changes.patch/dlint-261- # Sanity check nameserver's name dlint-1.4.0/.pc/05-local-changes.patch/dlint:262: if test x`domaintype $ns` = x"inverse"; then dlint-1.4.0/.pc/05-local-changes.patch/dlint-263- echo "WARNING: nameserver $ns has in-addr.arpa. in its name which is bad; skipping." ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-297- fi dlint-1.4.0/.pc/05-local-changes.patch/dlint:298: if test `awk '{print $1}' < $TMPSERIALS | sort -u | wc -l` -gt 1; then dlint-1.4.0/.pc/05-local-changes.patch/dlint-299- echo "WARNING: nameservers don't seem to agree on the zone's serial number." ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-318-badns=true dlint-1.4.0/.pc/05-local-changes.patch/dlint:319:while test $i -le `wc -l < $TMPNS`; do dlint-1.4.0/.pc/05-local-changes.patch/dlint-320- badns=false dlint-1.4.0/.pc/05-local-changes.patch/dlint:321: ns=`tail +$i $TMPNS | head -1` dlint-1.4.0/.pc/05-local-changes.patch/dlint-322- echo ";; trying nameserver $ns" ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-328- mv $TMPERR2 $TMPERR dlint-1.4.0/.pc/05-local-changes.patch/dlint:329: if test `wc -l < $TMPERR` -eq 0; then dlint-1.4.0/.pc/05-local-changes.patch/dlint-330- break ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-334- test $exitcode -lt 1 && exitcode=1 dlint-1.4.0/.pc/05-local-changes.patch/dlint:335: i=`expr $i + 1` dlint-1.4.0/.pc/05-local-changes.patch/dlint-336-done ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-355- test $exitcode -lt 2 && exitcode=2 dlint-1.4.0/.pc/05-local-changes.patch/dlint:356: len=`wc -l < $TMPA` dlint-1.4.0/.pc/05-local-changes.patch/dlint-357- if test $len -lt 5; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-385- i=0 dlint-1.4.0/.pc/05-local-changes.patch/dlint:386: len=`wc -l < $TMPPTR` dlint-1.4.0/.pc/05-local-changes.patch/dlint-387- if test $len -gt 0; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-393- while test $i -lt $len; do dlint-1.4.0/.pc/05-local-changes.patch/dlint:394: i=`expr $i + 1` dlint-1.4.0/.pc/05-local-changes.patch/dlint:395: set `tail +$i $TMPPTR | head -1` dlint-1.4.0/.pc/05-local-changes.patch/dlint-396- inaddr=$1 host=$3 dlint-1.4.0/.pc/05-local-changes.patch/dlint-397- # if not 4 numeric octets, assume it's a network address. dlint-1.4.0/.pc/05-local-changes.patch/dlint:398: num=`echo $inaddr | tr . '\012' | awk '{r++} /^in-addr$/ {print r - 1}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-399- if test 0"$num" -ne 4; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-403-#echo "XX $host A" dlint-1.4.0/.pc/05-local-changes.patch/dlint:404: addr=`dig $host A $digopts | $rrfilt | awk '$2=="A" {print $3}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-405- if test x"$addr" = x""; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-419- fi dlint-1.4.0/.pc/05-local-changes.patch/dlint:420: ina=`echo $inaddr | awk -F. '{print $4 "." $3 "." $2 "." $1}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint:421: a=`echo "$addr" | awk "/^$ina\$/ {print}"` dlint-1.4.0/.pc/05-local-changes.patch/dlint-422- if test x"$a" != x""; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-431- if test x"$ina" = x"127.0.0.1"; then dlint-1.4.0/.pc/05-local-changes.patch/dlint:432: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/.pc/05-local-changes.patch/dlint-433- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-440- # If record has host named localhost.*, make sure PTR rec is 1.0.0.127.in-addr.arpa. dlint-1.4.0/.pc/05-local-changes.patch/dlint:441: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/.pc/05-local-changes.patch/dlint-442- if test x"$hostname" = x"localhost"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-466- i=0 dlint-1.4.0/.pc/05-local-changes.patch/dlint:467: len=`wc -l < $TMPA` dlint-1.4.0/.pc/05-local-changes.patch/dlint-468- if test $len -gt 0; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-474- while test $i -lt $len; do dlint-1.4.0/.pc/05-local-changes.patch/dlint:475: i=`expr $i + 1` dlint-1.4.0/.pc/05-local-changes.patch/dlint:476: set `tail +$i $TMPA | head -1` dlint-1.4.0/.pc/05-local-changes.patch/dlint-477- host=$1 addr=$3 dlint-1.4.0/.pc/05-local-changes.patch/dlint:478: inaddr=`echo $addr | awk -F. '{print $4 "." $3 "." $2 "." $1 ".in-addr.arpa."}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-479-#echo "XX $inaddr PTR" dlint-1.4.0/.pc/05-local-changes.patch/dlint:480: inhost=`dig $inaddr PTR $digopts | $rrfilt | awk '$2=="PTR" {print $3}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-481- if test x"$inhost" = x""; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-495- fi dlint-1.4.0/.pc/05-local-changes.patch/dlint:496: numptrs=`echo "$inhost" | wc -l` dlint-1.4.0/.pc/05-local-changes.patch/dlint-497- # numptrs ends up with lots of spaces in it, so don't put it inside quotes... ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-501- fi dlint-1.4.0/.pc/05-local-changes.patch/dlint:502: lhost=`echo $host | $tolower` dlint-1.4.0/.pc/05-local-changes.patch/dlint-503- multipleinhosts="$inhost" ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-505- for inhost in $multipleinhosts; do dlint-1.4.0/.pc/05-local-changes.patch/dlint:506: linhost=`echo $inhost | $tolower` dlint-1.4.0/.pc/05-local-changes.patch/dlint-507- if test x"$linhost" = x"$lhost"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-513-#echo "XX @$ns $host SOA" dlint-1.4.0/.pc/05-local-changes.patch/dlint:514: soa=`dig @$ns $host SOA $digopts | $rrfilt | awk '$2=="SOA" {print "ok";exit}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-515- if test x"$soa" = x"ok"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-522- # NOTE: don't remove 2nd "echo", it's necessary: dlint-1.4.0/.pc/05-local-changes.patch/dlint:523: echo "ERROR: \"$host A $addr\", but the PTR records for $inaddr are \"`echo $multipleinhosts`\"" dlint-1.4.0/.pc/05-local-changes.patch/dlint-524- fi ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-539- # IP address is 127.0.0.1 -- make sure hostname is localhost.* dlint-1.4.0/.pc/05-local-changes.patch/dlint:540: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-541- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-548- # if hostname is localhost.*, make sure IP address is 127.0.0.1 dlint-1.4.0/.pc/05-local-changes.patch/dlint:549: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/.pc/05-local-changes.patch/dlint-550- if test x"$hostname" = x"localhost" -a x"$addr" != x"127.0.0.1"; then ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-572- i=1 dlint-1.4.0/.pc/05-local-changes.patch/dlint:573: len=`wc -l < $TMPSUBDOMS` dlint-1.4.0/.pc/05-local-changes.patch/dlint-574- while test $i -le $len; do dlint-1.4.0/.pc/05-local-changes.patch/dlint:575: line=`sed -e "$i!d" < $TMPSUBDOMS` dlint-1.4.0/.pc/05-local-changes.patch/dlint-576- ############################################## dlint-1.4.0/.pc/05-local-changes.patch/dlint-588- esac dlint-1.4.0/.pc/05-local-changes.patch/dlint:589: i=`expr $i + 1` dlint-1.4.0/.pc/05-local-changes.patch/dlint-590- done ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-110- dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:111:ans=`echo $ver | awk '$1 >= 2.1 {print "ok"; exit}'` # floating point math dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-112-if test x"$ans" != x"ok"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-116- dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:117:dig9=`echo $ver | awk '$1 >= 9.0 {print "yes"; exit}'` # floating point math dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-118- ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-145-domaintype () { dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:146: lcdom=`echo "$1" | $tolower` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-147- case $lcdom in ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-197- dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:198:ans=`echo $domain | $tolower | awk '/.in-addr.arpa/ {print "ok"; exit}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-199-if test x"$ans" = x"ok"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-252-responding= dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:253:if test `wc -l < $TMPNS` -eq 1; then dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-254- echo "WARNING: only 1 nameserver found for zone $domain" ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-259- rm -f $TMPSERIALS dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:260: for ns in `cat $TMPNS`; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-261- # Sanity check nameserver's name dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:262: if test x`domaintype $ns` = x"inverse"; then dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-263- echo "WARNING: nameserver $ns has in-addr.arpa. in its name which is bad; skipping." ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-297- fi dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:298: if test `awk '{print $1}' < $TMPSERIALS | sort -u | wc -l` -gt 1; then dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-299- echo "WARNING: nameservers don't seem to agree on the zone's serial number." ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-318-badns=true dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:319:while test $i -le `wc -l < $TMPNS`; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-320- badns=false dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:321: ns=`tail +$i $TMPNS | head -1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-322- echo ";; trying nameserver $ns" ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-328- mv $TMPERR2 $TMPERR dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:329: if test `wc -l < $TMPERR` -eq 0; then dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-330- break ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-334- test $exitcode -lt 1 && exitcode=1 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:335: i=`expr $i + 1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-336-done ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-355- test $exitcode -lt 2 && exitcode=2 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:356: len=`wc -l < $TMPA` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-357- if test $len -lt 5; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-385- i=0 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:386: len=`wc -l < $TMPPTR` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-387- if test $len -gt 0; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-393- while test $i -lt $len; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:394: i=`expr $i + 1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:395: set `tail +$i $TMPPTR | head -1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-396- inaddr=$1 host=$3 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-397- # if not 4 numeric octets, assume it's a network address. dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:398: num=`echo $inaddr | tr . '\012' | awk '{r++} /^in-addr$/ {print r - 1}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-399- if test 0"$num" -ne 4; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-403-#echo "XX $host A" dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:404: addr=`dig $host A $digopts | $rrfilt | awk '$2=="A" {print $3}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-405- if test x"$addr" = x""; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-419- fi dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:420: ina=`echo $inaddr | awk -F. '{print $4 "." $3 "." $2 "." $1}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:421: a=`echo "$addr" | awk "/^$ina\$/ {print}"` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-422- if test x"$a" != x""; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-431- if test x"$ina" = x"127.0.0.1"; then dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:432: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-433- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-440- # If record has host named localhost.*, make sure PTR rec is 1.0.0.127.in-addr.arpa. dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:441: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-442- if test x"$hostname" = x"localhost"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-466- i=0 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:467: len=`wc -l < $TMPA` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-468- if test $len -gt 0; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-474- while test $i -lt $len; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:475: i=`expr $i + 1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:476: set `tail +$i $TMPA | head -1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-477- host=$1 addr=$3 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:478: inaddr=`echo $addr | awk -F. '{print $4 "." $3 "." $2 "." $1 ".in-addr.arpa."}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-479-#echo "XX $inaddr PTR" dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:480: inhost=`dig $inaddr PTR $digopts | $rrfilt | awk '$2=="PTR" {print $3}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-481- if test x"$inhost" = x""; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-495- fi dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:496: numptrs=`echo "$inhost" | wc -l` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-497- # numptrs ends up with lots of spaces in it, so don't put it inside quotes... ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-501- fi dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:502: lhost=`echo $host | $tolower` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-503- multipleinhosts="$inhost" ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-505- for inhost in $multipleinhosts; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:506: linhost=`echo $inhost | $tolower` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-507- if test x"$linhost" = x"$lhost"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-513-#echo "XX @$ns $host SOA" dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:514: soa=`dig @$ns $host SOA $digopts | $rrfilt | awk '$2=="SOA" {print "ok";exit}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-515- if test x"$soa" = x"ok"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-522- # NOTE: don't remove 2nd "echo", it's necessary: dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:523: echo "ERROR: \"$host A $addr\", but the PTR records for $inaddr are \"`echo $multipleinhosts`\"" dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-524- fi ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-539- # IP address is 127.0.0.1 -- make sure hostname is localhost.* dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:540: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-541- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-548- # if hostname is localhost.*, make sure IP address is 127.0.0.1 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:549: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-550- if test x"$hostname" = x"localhost" -a x"$addr" != x"127.0.0.1"; then ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-572- i=1 dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:573: len=`wc -l < $TMPSUBDOMS` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-574- while test $i -le $len; do dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:575: line=`sed -e "$i!d" < $TMPSUBDOMS` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-576- ############################################## dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-588- esac dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint:589: i=`expr $i + 1` dlint-1.4.0/.pc/20-sort-tail-deprecated-syntax.patch/dlint-590- done ############################################## dlint-1.4.0/Makefile-39-dist: clean dlint-1.4.0/Makefile:40: d=`pwd`; d=`basename $$d`; cd ..; tar czf /tmp/$$d.tar.gz \ dlint-1.4.0/Makefile-41- --exclude RCS \ ############################################## dlint-1.4.0/dlint-110- dlint-1.4.0/dlint:111:ans=`echo $ver | awk '$1 >= 2.1 {print "ok"; exit}'` # floating point math dlint-1.4.0/dlint-112-if test x"$ans" != x"ok"; then ############################################## dlint-1.4.0/dlint-116- dlint-1.4.0/dlint:117:dig9=`echo $ver | awk '$1 >= 9.0 {print "yes"; exit}'` # floating point math dlint-1.4.0/dlint-118- ############################################## dlint-1.4.0/dlint-145-domaintype () { dlint-1.4.0/dlint:146: lcdom=`echo "$1" | $tolower` dlint-1.4.0/dlint-147- case $lcdom in ############################################## dlint-1.4.0/dlint-197- dlint-1.4.0/dlint:198:ans=`echo $domain | $tolower | awk '/.in-addr.arpa/ {print "ok"; exit}'` dlint-1.4.0/dlint-199-if test x"$ans" = x"ok"; then ############################################## dlint-1.4.0/dlint-252-responding= dlint-1.4.0/dlint:253:if test `wc -l < $TMPNS` -eq 1; then dlint-1.4.0/dlint-254- echo "WARNING: only 1 nameserver found for zone $domain" ############################################## dlint-1.4.0/dlint-259- rm -f $TMPSERIALS dlint-1.4.0/dlint:260: for ns in `cat $TMPNS`; do dlint-1.4.0/dlint-261- # Sanity check nameserver's name dlint-1.4.0/dlint:262: if test x`domaintype $ns` = x"inverse"; then dlint-1.4.0/dlint-263- echo "WARNING: nameserver $ns has in-addr.arpa. in its name which is bad; skipping." ############################################## dlint-1.4.0/dlint-297- fi dlint-1.4.0/dlint:298: if test `awk '{print $1}' < $TMPSERIALS | sort -u | wc -l` -gt 1; then dlint-1.4.0/dlint-299- echo "WARNING: nameservers don't seem to agree on the zone's serial number." ############################################## dlint-1.4.0/dlint-318-badns=true dlint-1.4.0/dlint:319:while test $i -le `wc -l < $TMPNS`; do dlint-1.4.0/dlint-320- badns=false dlint-1.4.0/dlint:321: ns=`tail -n +$i $TMPNS | head -1` dlint-1.4.0/dlint-322- echo ";; trying nameserver $ns" ############################################## dlint-1.4.0/dlint-328- mv $TMPERR2 $TMPERR dlint-1.4.0/dlint:329: if test `wc -l < $TMPERR` -eq 0; then dlint-1.4.0/dlint-330- break ############################################## dlint-1.4.0/dlint-334- test $exitcode -lt 1 && exitcode=1 dlint-1.4.0/dlint:335: i=`expr $i + 1` dlint-1.4.0/dlint-336-done ############################################## dlint-1.4.0/dlint-355- test $exitcode -lt 2 && exitcode=2 dlint-1.4.0/dlint:356: len=`wc -l < $TMPA` dlint-1.4.0/dlint-357- if test $len -lt 5; then ############################################## dlint-1.4.0/dlint-385- i=0 dlint-1.4.0/dlint:386: len=`wc -l < $TMPPTR` dlint-1.4.0/dlint-387- if test $len -gt 0; then ############################################## dlint-1.4.0/dlint-393- while test $i -lt $len; do dlint-1.4.0/dlint:394: i=`expr $i + 1` dlint-1.4.0/dlint:395: set `tail -n +$i $TMPPTR | head -1` dlint-1.4.0/dlint-396- inaddr=$1 host=$3 dlint-1.4.0/dlint-397- # if not 4 numeric octets, assume it's a network address. dlint-1.4.0/dlint:398: num=`echo $inaddr | tr . '\012' | awk '{r++} /^in-addr$/ {print r - 1}'` dlint-1.4.0/dlint-399- if test 0"$num" -ne 4; then ############################################## dlint-1.4.0/dlint-403-#echo "XX $host A" dlint-1.4.0/dlint:404: addr=`dig $host A $digopts | $rrfilt | awk '$2=="A" {print $3}'` dlint-1.4.0/dlint-405- if test x"$addr" = x""; then ############################################## dlint-1.4.0/dlint-419- fi dlint-1.4.0/dlint:420: ina=`echo $inaddr | awk -F. '{print $4 "." $3 "." $2 "." $1}'` dlint-1.4.0/dlint:421: a=`echo "$addr" | awk "/^$ina\$/ {print}"` dlint-1.4.0/dlint-422- if test x"$a" != x""; then ############################################## dlint-1.4.0/dlint-431- if test x"$ina" = x"127.0.0.1"; then dlint-1.4.0/dlint:432: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/dlint-433- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/dlint-440- # If record has host named localhost.*, make sure PTR rec is 1.0.0.127.in-addr.arpa. dlint-1.4.0/dlint:441: hostname=`echo $host | awk -F. '{print $1}' | $tolower` dlint-1.4.0/dlint-442- if test x"$hostname" = x"localhost"; then ############################################## dlint-1.4.0/dlint-466- i=0 dlint-1.4.0/dlint:467: len=`wc -l < $TMPA` dlint-1.4.0/dlint-468- if test $len -gt 0; then ############################################## dlint-1.4.0/dlint-474- while test $i -lt $len; do dlint-1.4.0/dlint:475: i=`expr $i + 1` dlint-1.4.0/dlint:476: set `tail -n +$i $TMPA | head -1` dlint-1.4.0/dlint-477- host=$1 addr=$3 dlint-1.4.0/dlint:478: inaddr=`echo $addr | awk -F. '{print $4 "." $3 "." $2 "." $1 ".in-addr.arpa."}'` dlint-1.4.0/dlint-479-#echo "XX $inaddr PTR" dlint-1.4.0/dlint:480: inhost=`dig $inaddr PTR $digopts | $rrfilt | awk '$2=="PTR" {print $3}'` dlint-1.4.0/dlint-481- if test x"$inhost" = x""; then ############################################## dlint-1.4.0/dlint-495- fi dlint-1.4.0/dlint:496: numptrs=`echo "$inhost" | wc -l` dlint-1.4.0/dlint-497- # numptrs ends up with lots of spaces in it, so don't put it inside quotes... ############################################## dlint-1.4.0/dlint-501- fi dlint-1.4.0/dlint:502: lhost=`echo $host | $tolower` dlint-1.4.0/dlint-503- multipleinhosts="$inhost" ############################################## dlint-1.4.0/dlint-505- for inhost in $multipleinhosts; do dlint-1.4.0/dlint:506: linhost=`echo $inhost | $tolower` dlint-1.4.0/dlint-507- if test x"$linhost" = x"$lhost"; then ############################################## dlint-1.4.0/dlint-513-#echo "XX @$ns $host SOA" dlint-1.4.0/dlint:514: soa=`dig @$ns $host SOA $digopts | $rrfilt | awk '$2=="SOA" {print "ok";exit}'` dlint-1.4.0/dlint-515- if test x"$soa" = x"ok"; then ############################################## dlint-1.4.0/dlint-522- # NOTE: don't remove 2nd "echo", it's necessary: dlint-1.4.0/dlint:523: echo "ERROR: \"$host A $addr\", but the PTR records for $inaddr are \"`echo $multipleinhosts`\"" dlint-1.4.0/dlint-524- fi ############################################## dlint-1.4.0/dlint-539- # IP address is 127.0.0.1 -- make sure hostname is localhost.* dlint-1.4.0/dlint:540: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/dlint-541- if test x"$hostname" != x"localhost"; then ############################################## dlint-1.4.0/dlint-548- # if hostname is localhost.*, make sure IP address is 127.0.0.1 dlint-1.4.0/dlint:549: hostname=`echo $lhost | awk -F. '{print $1}'` dlint-1.4.0/dlint-550- if test x"$hostname" = x"localhost" -a x"$addr" != x"127.0.0.1"; then ############################################## dlint-1.4.0/dlint-572- i=1 dlint-1.4.0/dlint:573: len=`wc -l < $TMPSUBDOMS` dlint-1.4.0/dlint-574- while test $i -le $len; do dlint-1.4.0/dlint:575: line=`sed -e "$i!d" < $TMPSUBDOMS` dlint-1.4.0/dlint-576- ############################################## dlint-1.4.0/dlint-588- esac dlint-1.4.0/dlint:589: i=`expr $i + 1` dlint-1.4.0/dlint-590- done