Package: aub
Version: 2.2
Severity: important
Tags: patch
The fix for bug 201426 is problematic when using a username/password to
authorize NNTP; mode reader can only be set after authorization is
complete.
The attached patch moves the mode reader call after authorization.
--- aub.orig 2005-09-11 19:12:36.000000000 -0400
+++ aub 2006-08-02 12:18:18.000000000 -0400
@@ -1377,12 +1377,6 @@
&abort("Remote nntp service doesn't look like nntp service to me.")
if (!(($line =~ m/^200\s/) || ($line =~ m/^201\s/)));
- &putline($sock, "mode reader");
- $line = &getline($sock);
- &abort("nntp service failed in switching to mode reader.")
- if (!($line =~ m/^200\s/));
- print " Switched to mode reader\n" if ($opt_d);
-
&putline ($sock, "stat\n");
$line = &getline($sock);
if ($line =~ m/^480\s/)
@@ -1397,6 +1391,12 @@
&abort ("Authorization failed: ".$line."\n");
}
+ &putline($sock, "mode reader");
+ $line = &getline($sock);
+ &abort("nntp service failed in switching to mode reader.")
+ if (!($line =~ m/^200\s/));
+ print " Switched to mode reader\n" if ($opt_d);
+
}
-- System Information:
Debian Release: 3.1
Architecture: i386 (i586)
Kernel: Linux 2.4.18-k6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages aub depends on:
ii perl 5.8.4-8sarge4 Larry Wall's Practical Extraction
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]