aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-23 08:18:05 +0800
committeredwin <edwin@FreeBSD.org>2002-11-23 08:18:05 +0800
commite491a70a0df44bd25cf9024d697cb11d34a5d830 (patch)
treeceab94a7aa19338900947da12d19a62e193404e1 /net-p2p
parent0d49020651e9aa7371afb70d4a3d3f0ac0e02e79 (diff)
downloadfreebsd-ports-gnome-e491a70a0df44bd25cf9024d697cb11d34a5d830.tar.gz
freebsd-ports-gnome-e491a70a0df44bd25cf9024d697cb11d34a5d830.tar.zst
freebsd-ports-gnome-e491a70a0df44bd25cf9024d697cb11d34a5d830.zip
Maintainer bugfix 'resume "IO Error" bug'
PR: ports/45405 Submitted by: Roman Shterenzon <roman@xpert.com>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/lopster/Makefile2
-rw-r--r--net-p2p/lopster/files/patch-src::transfer.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/net-p2p/lopster/Makefile b/net-p2p/lopster/Makefile
index 37eb4a6d2c0b..5d718c553dc6 100644
--- a/net-p2p/lopster/Makefile
+++ b/net-p2p/lopster/Makefile
@@ -7,7 +7,7 @@
PORTNAME= lopster
PORTVERSION= 1.0.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-p2p/lopster/files/patch-src::transfer.c b/net-p2p/lopster/files/patch-src::transfer.c
new file mode 100644
index 000000000000..ffc51a29a38f
--- /dev/null
+++ b/net-p2p/lopster/files/patch-src::transfer.c
@@ -0,0 +1,15 @@
+--- src/transfer.c.orig Sun Nov 4 20:30:19 2001
++++ src/transfer.c Mon Nov 18 11:09:25 2002
+@@ -1827,8 +1827,10 @@
+ printf("set offset to %ld %d\n", transfer->progress, cnt);
+ #endif
+ transfer->resume_check = l_malloc(cnt * sizeof(char));
+- transfer->check_length = read(fileno(transfer->file),
+- transfer->resume_check, cnt);
++ transfer->check_length = fread(transfer->resume_check,
++ sizeof(char),
++ cnt,
++ transfer->file);
+ fclose(transfer->file);
+
+ if (transfer->check_length != cnt) {