Lines 1-5
Link Here
|
1 |
--- nntpd.c Sat May 18 20:21:56 2002 |
1 |
--- nntpd.c.orig Sat May 18 22:21:56 2002 |
2 |
+++ nntpd.c Wed Aug 21 22:09:46 2002 |
2 |
+++ nntpd.c Wed Aug 4 03:40:06 2004 |
3 |
@@ -2,6 +2,7 @@ |
3 |
@@ -2,6 +2,7 @@ |
4 |
* S-News version 0.1.9 - A Simple News Server |
4 |
* S-News version 0.1.9 - A Simple News Server |
5 |
* Copyright (C) 1998 Christopher John Purnell |
5 |
* Copyright (C) 1998 Christopher John Purnell |
Lines 8-14
Link Here
|
8 |
* |
8 |
* |
9 |
* This program is free software; you can redistribute it and/or modify |
9 |
* This program is free software; you can redistribute it and/or modify |
10 |
* it under the terms of the GNU General Public License as published by |
10 |
* it under the terms of the GNU General Public License as published by |
11 |
@@ -106,6 +107,7 @@ |
11 |
@@ -22,6 +23,8 @@ |
|
|
12 |
#include "config.h" |
13 |
#endif |
14 |
|
15 |
+#include <sys/types.h> |
16 |
+#include <sys/socket.h> |
17 |
#include <sys/utsname.h> |
18 |
#include <sys/stat.h> |
19 |
#include <sys/wait.h> |
20 |
@@ -106,6 +109,7 @@ |
12 |
static void do_listgroup(char *); |
21 |
static void do_listgroup(char *); |
13 |
static void do_xover(char *); |
22 |
static void do_xover(char *); |
14 |
static void do_xhdr(char *); |
23 |
static void do_xhdr(char *); |
Lines 16-22
Link Here
|
16 |
static void do_xpath(char *); |
25 |
static void do_xpath(char *); |
17 |
static void do_ihave(char *); |
26 |
static void do_ihave(char *); |
18 |
static void do_post(char *); |
27 |
static void do_post(char *); |
19 |
@@ -239,6 +241,10 @@ |
28 |
@@ -239,6 +243,10 @@ |
20 |
{ |
29 |
{ |
21 |
do_xhdr(arg); |
30 |
do_xhdr(arg); |
22 |
} |
31 |
} |
Lines 27-33
Link Here
|
27 |
else if (!strcasecmp(line,"xover")) |
36 |
else if (!strcasecmp(line,"xover")) |
28 |
{ |
37 |
{ |
29 |
do_xover(arg); |
38 |
do_xover(arg); |
30 |
@@ -811,10 +817,11 @@ |
39 |
@@ -811,10 +819,11 @@ |
31 |
printf(".\r\n"); |
40 |
printf(".\r\n"); |
32 |
} |
41 |
} |
33 |
|
42 |
|
Lines 41-47
Link Here
|
41 |
char *fmt,*cp; |
50 |
char *fmt,*cp; |
42 |
unsigned char c; |
51 |
unsigned char c; |
43 |
int i; |
52 |
int i; |
44 |
@@ -835,7 +842,7 @@ |
53 |
@@ -835,7 +844,7 @@ |
45 |
i = -1; fmt = "%u \r\n"; |
54 |
i = -1; fmt = "%u \r\n"; |
46 |
for (u=0; u<7; ++u) |
55 |
for (u=0; u<7; ++u) |
47 |
{ |
56 |
{ |
Lines 50-56
Link Here
|
50 |
{ |
59 |
{ |
51 |
fmt = ((i=u) < 5) ? "%u %s\r\n" : "%u %u\r\n"; |
60 |
fmt = ((i=u) < 5) ? "%u %s\r\n" : "%u %u\r\n"; |
52 |
} |
61 |
} |
53 |
@@ -1118,6 +1125,7 @@ |
62 |
@@ -1118,6 +1127,7 @@ |
54 |
printf("ARTICLE HEAD BODY STAT\r\n"); |
63 |
printf("ARTICLE HEAD BODY STAT\r\n"); |
55 |
printf("GROUP LIST NEXT LAST\r\n"); |
64 |
printf("GROUP LIST NEXT LAST\r\n"); |
56 |
printf("LISTGROUP XHDR XOVER XPATH\r\n"); |
65 |
printf("LISTGROUP XHDR XOVER XPATH\r\n"); |
Lines 58-64
Link Here
|
58 |
} |
67 |
} |
59 |
if (canpost) |
68 |
if (canpost) |
60 |
{ |
69 |
{ |
61 |
@@ -1127,7 +1135,7 @@ |
70 |
@@ -1127,7 +1137,7 @@ |
62 |
{ |
71 |
{ |
63 |
printf("IHAVE "); |
72 |
printf("IHAVE "); |
64 |
} |
73 |
} |
Lines 67-73
Link Here
|
67 |
} |
76 |
} |
68 |
|
77 |
|
69 |
static int match_pat(char *pat,char *str) |
78 |
static int match_pat(char *pat,char *str) |
70 |
@@ -1533,3 +1541,177 @@ |
79 |
@@ -1533,3 +1543,177 @@ |
71 |
|
80 |
|
72 |
return str; |
81 |
return str; |
73 |
} |
82 |
} |