diff options
author | obrien <obrien@FreeBSD.org> | 2000-01-16 10:26:14 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-01-16 10:26:14 +0800 |
commit | e67039326c836ce5055f8c60a9062e2a8e886547 (patch) | |
tree | 87ba7b9f20284dc9c88fcee7eb45db159a071fee /news | |
parent | 819cd7496814016fbb89f60444b7aa7c044c42da (diff) | |
download | freebsd-ports-gnome-e67039326c836ce5055f8c60a9062e2a8e886547.tar.gz freebsd-ports-gnome-e67039326c836ce5055f8c60a9062e2a8e886547.tar.zst freebsd-ports-gnome-e67039326c836ce5055f8c60a9062e2a8e886547.zip |
"As installed by the news/aub port, it will only recognize EOL by the \n
symbol. Too many postings use \r :( I don't know where they come from
(MACs?), but the included patch seems to make aub work nicer."
PR: 15693
Submitted by: Mikhail Teterin <mi@kot.ne.mediaone.net>
Diffstat (limited to 'news')
-rw-r--r-- | news/aub/files/patch-01 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/news/aub/files/patch-01 b/news/aub/files/patch-01 index e80c682f259f..74cfba9de240 100644 --- a/news/aub/files/patch-01 +++ b/news/aub/files/patch-01 @@ -1,7 +1,7 @@ ---- aub.orig Sat Oct 31 14:17:33 1998 -+++ aub Sat Oct 31 14:18:37 1998 +--- aub.orig Sat Jan 15 18:12:02 2000 ++++ aub Sat Jan 15 18:14:26 2000 @@ -38,6 +38,8 @@ - $SUM = "/bin/sum"; &find_pg("sum", 0) unless (-x $SUM); + $SUM = "/usr/bin/sum"; &find_pg("sum", 0) unless (-x $SUM); $CAT = "/bin/cat"; &find_pg("cat", 0) unless (-x $CAT); $MV = "/bin/mv"; &find_pg("mv", 0) unless (-x $MV); +$HOSTNAME = "/bin/hostname"; $HOSTNAME = &find_pg("hostname", 0) unless @@ -67,6 +67,15 @@ &abort("Remote nntp service doesn't look like nntp service to me."); } +@@ -968,7 +989,7 @@ + $timeout_flag = 0; # Not a local variable + alarm($timeout_interval); # Can't wait forever. + +- while ($socket_stuff !~ m/\n/) { # No complete line in buffer ++ while ($socket_stuff !~ m/\r\n/) { # No complete line in buffer + recv($sockname, $inp, 256, 0); # Need more data + $socket_stuff .= $inp; # Append to our buffer. + } @@ -1022,7 +1043,7 @@ local($protocol) = "tcp"; local($thishost, $problem, $junk); |