Article View: news.software.nntp
Article #36669Two patches for Diablo 1.23-REL
From: Paul Martin
Date: Fri, 16 Apr 1999 00:00
Date: Fri, 16 Apr 1999 00:00
50 lines
2201 bytes
2201 bytes
The first fixes dreader/xover.c to allow unbounded ends of article ranges
(eg. XHDR Message-ID 142-). The second fixes a logic error in dsyncgroups.
I've already sent these to Matt.
diff -ru diablo-1.23-REL/dreaderd/xover.c diablo-1.23-ZET/dreaderd/xover.c
--- diablo-1.23-REL/dreaderd/xover.c Sun Jan 10 21:25:13 1999
+++ diablo-1.23-ZET/dreaderd/xover.c Mon Apr 12 23:10:50 1999
@@ -9,6 +9,7 @@
* for specific rights granted.
*/
+#include <limits.h>
#include "defs.h"
Prototype void NNTPXHdr(Connection *conn, char **pptr);
@@ -117,7 +118,12 @@
} else if (ran[0] != '<') {
char *p;
conn->co_ListBegNo = strtol(ran, &p, 10);
- conn->co_ListEndNo = (*p == '-') ? strtol(p + 1, NULL, 10) : conn->co_ListBegNo;
+ conn->co_ListEndNo =
+ (*p == '-')
+ ? ( (*(p+1) == '\0')
+ ? INT_MAX
+ : strtol(p + 1, NULL, 10) )
+ : conn->co_ListBegNo;
NNStartListOverviewRange(conn);
} else if ((ran = MsgId(ran)) && strcmp(ran, "<>") != 0) {
NNStartListOverviewMsgId(conn, ran);
--- diablo-1.23-REL/util/dsyncgroups.c Fri Oct 16 20:29:03 1998
+++ diablo-1.23-ZET/util/dsyncgroups.c Thu Apr 15 11:49:08 1999
@@ -484,8 +484,8 @@
* If group did not come from remote and SyncDeleteOpt is set,
* delete the group.
*/
- if ((group->gr_State & GRF_FROMREMOTE) &&
- !(group->gr_State & GRF_FROMLOCAL) &&
+ if (!(group->gr_State & GRF_FROMREMOTE) &&
+ (group->gr_State & GRF_FROMLOCAL) &&
SyncDeleteOpt
) {
printf("Deleting %s\n", group->gr_GroupName);
--
Paul Martin <pm@zetnet.net>
at home, swap dash to dot to email.
Technical Details
Message-ID:
<37173754$0$1581@master.news.zetnet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <37173754$0$1581@master.news.zetnet.net> Subject: Two patches for Diablo 1.23-REL Date: Fri, 16 Apr 1999 00:00:00 +0000 From: pm@nowster-zetnet.co.uk (Paul Martin) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 467118231 X-Trace: master.news.zetnet.net 924268372 1581 root@194.247.42.229 User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.nntp