diff options
author | hubertf <hubertf> | 2003-10-07 19:35:34 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2003-10-07 19:35:34 +0000 |
commit | f538901144a5fc51771cf903b48ef1fdc751b668 (patch) | |
tree | 86a5545ed034e33fdb03021a2d46cdbba8e9eb6b /net/nidentd/patches | |
parent | bd2000cf70236bf333da4f405d9aee89e6904403 (diff) | |
download | pkgsrc-f538901144a5fc51771cf903b48ef1fdc751b668.tar.gz |
Bump to 1.0nb1: Fix bug in handling of masquerading.
Original patch by Simas Mockevicius <symka@vejas.lt>
Diffstat (limited to 'net/nidentd/patches')
-rw-r--r-- | net/nidentd/patches/patch-aa | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/net/nidentd/patches/patch-aa b/net/nidentd/patches/patch-aa index 6d6da9f2e03..abcc7112f94 100644 --- a/net/nidentd/patches/patch-aa +++ b/net/nidentd/patches/patch-aa @@ -1,17 +1,24 @@ -$NetBSD: patch-aa,v 1.3 2002/05/05 23:51:28 hubertf Exp $ +$NetBSD: patch-aa,v 1.4 2003/10/07 19:35:34 hubertf Exp $ ---- nidentd.orig Mon May 6 00:37:54 2002 +--- nidentd.orig Sat May 4 14:53:01 2002 +++ nidentd -@@ -1,9 +1,9 @@ - #!/bin/sh +@@ -2,8 +2,8 @@ --v_lsof="/usr/pkg/sbin/lsof -P -n -Di" -+v_lsof="@LOCALBASE@/sbin/lsof -P -n -Di" + v_lsof="/usr/pkg/sbin/lsof -P -n -Di" v_ipnat="/usr/sbin/ipnat -l" -v_nat_conf="/usr/local/etc/nidentd.nat" -v_fake_conf="/usr/local/etc/nidentd.fake" -+v_nat_conf="@LOCALBASE@/etc/nidentd.nat" -+v_fake_conf="@LOCALBASE@/etc/nidentd.fake" ++v_nat_conf="/usr/pkg/etc/nidentd.nat" ++v_fake_conf="/usr/pkg/etc/nidentd.fake" # Protocol independent +@@ -40,7 +40,7 @@ if [ -n $qlport ] && [ -n $qrport ] && [ + if [ $qlport -eq $lport ] && [ $qrport -eq $rport ] + then + masqip=`$v_ipnat -l | grep -e "MAP" -e " $qlport " -e " $qrport" | awk '{ print $2 }' | tr -c -d '.1234567890'` +- hostn=`grep ^$masqip $v_nat_conf | awk -F: '{ print $2 }'` ++ hostn=`grep ^"$masqip:" $v_nat_conf | awk -F: '{ print $2 }'` + if [ $hostn ] + then + printf "$qlport , $qrport : USERID : UNIX : $hostn\r\n" |