diff options
author | sem <sem@FreeBSD.org> | 2009-10-21 20:20:37 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2009-10-21 20:20:37 +0800 |
commit | ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b (patch) | |
tree | ad9be57a0b90a31e061f7eaa48071a87f584283f /net-mgmt/bgpq | |
parent | 907a2ea9df3b60bded44497bcba27f79423426a7 (diff) | |
download | freebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.tar.gz freebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.tar.zst freebsd-ports-gnome-ea8dba1442b1dadc4b7937b9a83d7bcef7864e6b.zip |
- Fix the last patch. It was failed when a server closed a connection.
Diffstat (limited to 'net-mgmt/bgpq')
-rw-r--r-- | net-mgmt/bgpq/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/bgpq/files/patch-bgpq | 19 |
2 files changed, 13 insertions, 8 deletions
diff --git a/net-mgmt/bgpq/Makefile b/net-mgmt/bgpq/Makefile index 78ffc0e08729..69a4d390f2a6 100644 --- a/net-mgmt/bgpq/Makefile +++ b/net-mgmt/bgpq/Makefile @@ -6,7 +6,7 @@ PORTNAME= bgpq PORTVERSION= 1.0.9.7 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt MASTER_SITES= ftp://ftp.lexa.ru/pub/domestic/snar/ EXTRACT_SUFX= .tgz diff --git a/net-mgmt/bgpq/files/patch-bgpq b/net-mgmt/bgpq/files/patch-bgpq index a3f9c16d310b..25c169b6215b 100644 --- a/net-mgmt/bgpq/files/patch-bgpq +++ b/net-mgmt/bgpq/files/patch-bgpq @@ -225,8 +225,8 @@ struct addrinfo* res; #else --- irrdi.c.orig 2005-06-23 11:53:56.000000000 +0400 -+++ irrdi.c 2009-10-20 17:22:49.000000000 +0400 -@@ -191,12 +191,10 @@ ++++ irrdi.c 2009-10-20 20:11:04.000000000 +0400 +@@ -191,24 +191,25 @@ }; }; #endif @@ -240,7 +240,11 @@ return 1; }; -@@ -207,8 +205,11 @@ + + int + irrd_question(struct irrdc* ir, char* quest, ...) +-{ ++{ va_list ap; char qbuff[512]; char rbuff[2048]; @@ -253,7 +257,7 @@ memset(qbuff,0,sizeof(qbuff)); va_start(ap,quest); -@@ -217,79 +218,120 @@ +@@ -217,79 +218,121 @@ va_end(ap); @@ -307,7 +311,8 @@ + if(debug>2) + SX_TRACE2("sending %s", qbuff); + -+ strcat(qbuff, "\n"); ++ if(!retries) ++ strcat(qbuff, "\n"); + if (write(ir->s, qbuff, strlen(qbuff)) != strlen(qbuff)) + goto errlab; + @@ -336,7 +341,7 @@ + bzero(ir->answer,len+1); + + if(debug>2) -+ SX_TRACE2("Waiting for %i data bytes..",len); ++ SX_TRACE2("Waiting for %i data bytes",len); + + if(need_copy) { + n -= strlen(rbuff)+1; @@ -446,7 +451,7 @@ return 1; }; -@@ -302,9 +344,7 @@ +@@ -302,9 +345,7 @@ if(debug>2) { SX_TRACE2("sending !q"); }; |