Chomp a newline off the end of the text read from /etc/nntpserver.
[sgt/utils] / nntpid / nntpid
index d9b47c0..298dbf3 100755 (executable)
@@ -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);