aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-01-09 01:37:25 +0800
committererwin <erwin@FreeBSD.org>2006-01-09 01:37:25 +0800
commit6e02c65f4b99e973b1dab0645ed8a79b19b9c628 (patch)
treec881fac0ab26af105444004598d57ea1e41218f9
parent2cbb6438e2a2658ff2f0e731b8d93abbc9339183 (diff)
downloadfreebsd-ports-gnome-6e02c65f4b99e973b1dab0645ed8a79b19b9c628.tar.gz
freebsd-ports-gnome-6e02c65f4b99e973b1dab0645ed8a79b19b9c628.tar.zst
freebsd-ports-gnome-6e02c65f4b99e973b1dab0645ed8a79b19b9c628.zip
Update to 2.8.3
PR: 91515 Submitted by: Christian Laursen <xi@borderworlds.dk> (maintainer)
-rw-r--r--net/nbd-server/Makefile3
-rw-r--r--net/nbd-server/distinfo6
-rw-r--r--net/nbd-server/files/patch-nbd-server.c24
3 files changed, 12 insertions, 21 deletions
diff --git a/net/nbd-server/Makefile b/net/nbd-server/Makefile
index 7ae01e820816..d32aef8704f3 100644
--- a/net/nbd-server/Makefile
+++ b/net/nbd-server/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= nbd-server
-PORTVERSION= 2.8.2
-PORTREVISION= 1
+PORTVERSION= 2.8.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nbd
diff --git a/net/nbd-server/distinfo b/net/nbd-server/distinfo
index c9b0befb9655..b2a67376e006 100644
--- a/net/nbd-server/distinfo
+++ b/net/nbd-server/distinfo
@@ -1,3 +1,3 @@
-MD5 (nbd-2.8.2.tar.bz2) = 2a911e6499d9281b34ff904a446b1049
-SHA256 (nbd-2.8.2.tar.bz2) = ce45c1c7f587a407061d9e70b6d9b07a52950c0a580d7f7a8bdb4a383ccbabf9
-SIZE (nbd-2.8.2.tar.bz2) = 137601
+MD5 (nbd-2.8.3.tar.bz2) = 09f97e8f321a3b1a65a6b5aa31409ed1
+SHA256 (nbd-2.8.3.tar.bz2) = e13bc874b987b2ae06c087d8d10349ddf858829a12711cd158c778b0d415c76c
+SIZE (nbd-2.8.3.tar.bz2) = 163461
diff --git a/net/nbd-server/files/patch-nbd-server.c b/net/nbd-server/files/patch-nbd-server.c
index 383f8961562c..10f840e6b9fc 100644
--- a/net/nbd-server/files/patch-nbd-server.c
+++ b/net/nbd-server/files/patch-nbd-server.c
@@ -1,7 +1,7 @@
-diff -urN nbd-2.8.2.orig/nbd-server.c nbd-2.8.2/nbd-server.c
---- nbd-2.8.2.orig/nbd-server.c Wed Nov 9 22:38:44 2005
-+++ nbd-server.c Thu Dec 22 16:04:47 2005
-@@ -363,11 +363,11 @@
+diff -urN nbd-2.8.3.orig/nbd-server.c nbd-2.8.3/nbd-server.c
+--- nbd-2.8.3.orig/nbd-server.c Thu Dec 22 21:37:20 2005
++++ nbd-server.c Sun Jan 8 16:45:30 2006
+@@ -363,12 +363,12 @@
* is severely wrong)
**/
void sigchld_handler(int s) {
@@ -9,18 +9,10 @@ diff -urN nbd-2.8.2.orig/nbd-server.c nbd-2.8.2/nbd-server.c
+ int status;
int* i;
pid_t pid;
+ int done=0;
-- while((pid=wait(status)) > 0) {
-+ while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
+- while(!done && (pid=wait(status)) > 0) {
++ while(!done && (pid=wait(&status)) > 0) {
if(WIFEXITED(status)) {
msg3(LOG_INFO, "Child exited with %d", WEXITSTATUS(status));
- }
-@@ -684,7 +684,7 @@
-
- if (request.magic != htonl(NBD_REQUEST_MAGIC))
- err("Not enough magic.");
-- if (len > BUFSIZE)
-+ if (len > (BUFSIZE-sizeof(struct nbd_reply)))
- err("Request too big!");
- #ifdef DODBG
- printf("%s from %Lu (%Lu) len %d, ", request.type ? "WRITE" :
+ msg3(LOG_INFO, "pid is %d", pid);