Subject: pkg/7765: sendfile has reversed patch-ab
To: None <gnats-bugs@gnats.netbsd.org>
From: None <douglas+mail@fang.demon.co.uk>
List: netbsd-bugs
Date: 06/12/1999 08:23:02
>Number: 7765
>Category: pkg
>Synopsis: Sendfile patch-ab is reversed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 12 08:20:00 1999
>Last-Modified:
>Originator: Douglas Brebner
>Organization:
>Release: NetBSD-1.4
>Environment:
System: NetBSD aoife 1.4 NetBSD 1.4 (AOIFE_INSECURE) #0: Sun May 23 13:21:54 BST 1999 douglas@aoife:/usr/src/sys/arch/i386/compile/AOIFE_INSECURE i386
>Description:
The sendfile's patch-ab is reversed
>How-To-Repeat:
cd /usr/pkgsrc/net/sendfile; make
>Fix:
Use following patch instead:
--- src/sendfiled.c.orig Thu Oct 29 16:48:08 1998
+++ src/sendfiled.c Sat Jun 12 15:55:38 1999
@@ -2945,7 +2945,7 @@
exit(1);
}
if (wlock_file(lockf)<0) {
- snprintf(MAXS(tmp),"cannot lock %s : ",lockfn,strerror(errno));
+ snprintf(MAXS(tmp),"cannot lock %s : %s",lockfn,strerror(errno));
dbgout(tmp);
exit(1);
}
>Audit-Trail:
>Unformatted: