Thread View: news.software.nntp
1 messages
1 total messages
Started by Paul Martin
Fri, 16 Apr 1999 00:00
Two patches for Diablo 1.23-REL
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads