X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/utils/blobdiff_plain/3d2a141ceeb6f80f74b7b4d8defc7a228f93f468..b25fe76c94516413532bbd6f9ecb40975351eb59:/nntpid/nntpid diff --git a/nntpid/nntpid b/nntpid/nntpid index d9b47c0..298dbf3 100755 --- a/nntpid/nntpid +++ b/nntpid/nntpid @@ -99,6 +99,7 @@ if ($all) { $ns=$ENV{'NNTPSERVER'}; if (!defined $ns or !length $ns) { $ns = `cat /etc/nntpserver`; + chomp $ns; } $port = (getservbyname("nntp", "tcp"))[2]; $ns = inet_aton($ns);