summaryrefslogtreecommitdiff
path: root/source/n/nn/nn.badnntphost.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/nn/nn.badnntphost.diff')
-rw-r--r--source/n/nn/nn.badnntphost.diff19
1 files changed, 8 insertions, 11 deletions
diff --git a/source/n/nn/nn.badnntphost.diff b/source/n/nn/nn.badnntphost.diff
index 919b7d42..ccb6de78 100644
--- a/source/n/nn/nn.badnntphost.diff
+++ b/source/n/nn/nn.badnntphost.diff
@@ -1,14 +1,11 @@
---- ./nntp.c.orig 2005-04-19 18:06:51.000000000 -0500
-+++ ./nntp.c 2006-06-27 17:14:32.000000000 -0500
-@@ -913,8 +913,9 @@
-
+--- ./nntp.c.orig 2017-01-04 15:03:32.235592431 -0600
++++ ./nntp.c 2017-01-04 15:06:09.724603794 -0600
+@@ -918,7 +918,7 @@
if ((hp = gethostbyname(nntp_server)) != NULL)
server_real_name = hp->h_name;
-- else
+ else
- nn_exitmsg(1, "NNTPSERVER is invalid");
-+ else {
-+ nn_exitmsg(1, "NNTP host is invalid -- please edit /etc/nntpserver");
-+ }
- use_nntp = (strcmp(host_name, server_real_name) != 0);
-
- if (use_nntp) {
++ nn_exitmsg(1, "NNTP host is invalid -- please edit /etc/nntpserver");
+ #ifdef USE_SPOOL
+ use_nntp = (strcasecmp(host, server_real_name) != 0);
+ #else /* USE_SPOOL */