ports/70104: [MAINTAINER] comms/bforce-kst: fix reading/writing stat files

Andrey Slusar vasallia at ukr.net
Sat Aug 7 00:30:28 UTC 2004


>Number:         70104
>Category:       ports
>Synopsis:       [MAINTAINER] comms/bforce-kst: fix reading/writing stat files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 07 00:30:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Fri Aug 6 18:35:54 EEST 2004 root at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	New files:
	patch-bfstat.c
	patch-sess_stat.c

	Fix statistic read and write.
>How-To-Repeat:
	
>Fix:

--- bforce-kst.diff begins here ---
diff -ruN /usr/ports/comms/bforce-kst/files/patch-bfstat.c bforce-kst/files/patch-bfstat.c
--- /usr/ports/comms/bforce-kst/files/patch-bfstat.c	Thu Jan  1 03:00:00 1970
+++ bforce-kst/files/patch-bfstat.c	Sat Aug  7 03:14:40 2004
@@ -0,0 +1,10 @@
+--- bfutil/bfstat.c.orig	Thu Nov 21 23:23:00 2002
++++ bfutil/bfstat.c	Sat Aug  7 02:20:35 2004
+@@ -17,6 +17,7 @@
+ #include "logger.h"
+ #include "util.h"
+ #include "outbound.h"
++#include "session.h"
+ 
+ /*
+  * Command line options storage structure
diff -ruN /usr/ports/comms/bforce-kst/files/patch-sess_stat.c bforce-kst/files/patch-sess_stat.c
--- /usr/ports/comms/bforce-kst/files/patch-sess_stat.c	Thu Jan  1 03:00:00 1970
+++ bforce-kst/files/patch-sess_stat.c	Sat Aug  7 02:12:50 2004
@@ -0,0 +1,20 @@
+--- bforce/sess_stat.c.old	Sat Aug  7 02:06:26 2004
++++ bforce/sess_stat.c	Sat Aug  7 02:11:29 2004
+@@ -75,7 +75,7 @@
+ 	
+ 	memset(stat, '\0', sizeof(s_sess_stat));
+ 	
+-	fscanf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
++	fscanf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
+ 			(unsigned int *) &stat->tries,
+ 			(unsigned int *) &stat->tries_noconn,
+ 			(unsigned int *) &stat->tries_noansw,
+@@ -98,7 +98,7 @@
+ 	if( fseek(fp, 0, SEEK_SET) == -1 )
+ 		return -1;
+ 	
+-	fprintf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
++	fprintf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
+ 			(unsigned int) stat->tries,
+ 			(unsigned int) stat->tries_noconn,
+ 			(unsigned int) stat->tries_noansw,
--- bforce-kst.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list