~mdw
/
sgt
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Chomp a newline off the end of the text read from /etc/nntpserver.
[sgt/utils]
/
nntpid
/
nntpid
diff --git
a/nntpid/nntpid
b/nntpid/nntpid
index
d9b47c0
..
298dbf3
100755
(executable)
--- 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);