over NNTP without any access to a news spool file system. NOV is accessed using the XOVER command (INN has this and it is available for nntpd too).
22 lines
639 B
Text
22 lines
639 B
Text
$NetBSD: patch-ax,v 1.3 1999/08/22 22:55:46 kim Exp $
|
|
|
|
--- nntp.c.orig Wed Jun 9 14:18:25 1999
|
|
+++ nntp.c Sun Aug 22 18:14:18 1999
|
|
@@ -769,7 +769,7 @@
|
|
strncpy(host, (gethostbyname(host))->h_name, sizeof host);
|
|
|
|
server_real_name = (gethostbyname(nntp_server))->h_name;
|
|
- use_nntp = (strcmp(host, server_real_name) != 0);
|
|
+ use_nntp = 1;
|
|
|
|
if (use_nntp) {
|
|
freeobj(news_active);
|
|
@@ -1108,7 +1108,7 @@
|
|
|
|
case OK_BODY:
|
|
tmp = open_file(cptr->file_name, OPEN_APPEND|MUST_EXIST);
|
|
- fseek(tmp, (off_t)0, 2);
|
|
+ fseek(tmp, (long)0, 2);
|
|
if (copy_text(tmp) < 0)
|
|
return NULL;
|
|
if (fclose(tmp) == EOF) goto err;
|