Chomp a newline off the end of the text read from /etc/nntpserver.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 23 Nov 2011 19:48:29 +0000 (19:48 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 23 Nov 2011 19:48:29 +0000 (19:48 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/utils@9339 cda61777-01e9-0310-a592-d414129be87e

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);