/[smeserver]/rpms/qpsmtpd/sme9/0019-Check-for-the-exact-string-resonses-from-vpopmaild-r.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme9/0019-Check-for-the-exact-string-resonses-from-vpopmaild-r.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sat Feb 2 00:59:44 2013 UTC (11 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_84-14_el6_sme, qpsmtpd-0_84-16_el6_sme, qpsmtpd-0_84-12_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-2_el6_sme, qpsmtpd-0_84-13_el6_sme, qpsmtpd-0_84-6_el6_sme, qpsmtpd-0_84-18_el6_sme, qpsmtpd-0_84-9_el6_sme, qpsmtpd-0_84-4_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_84-15_el6_sme, qpsmtpd-0_96-4_el6_sme, qpsmtpd-0_96-3_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_84-17_el6_sme, qpsmtpd-0_84-7_el6_sme, qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_84-10_el6_sme, qpsmtpd-0_84-8_el6_sme, qpsmtpd-0_96-1_el6_sme, qpsmtpd-0_84-5_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_84-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
* Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
- Update spec so building on rhel6 works [SME: 7263]

1 slords 1.1 From 0d2b724b9317bbfddf402279ceff2f523814b8ac Mon Sep 17 00:00:00 2001
2     From: Robin Bowes <robin@hero.robinbowes.com>
3     Date: Mon, 10 May 2010 10:01:30 +0100
4     Subject: Check for the exact string resonses from vpopmaild rather than using regexes
5    
6     ---
7     plugins/auth/auth_vpopmaild | 6 ++----
8     1 files changed, 2 insertions(+), 4 deletions(-)
9    
10     diff --git a/plugins/auth/auth_vpopmaild b/plugins/auth/auth_vpopmaild
11     index 623d919..d30eaed 100644
12     --- a/plugins/auth/auth_vpopmaild
13     +++ b/plugins/auth/auth_vpopmaild
14     @@ -37,9 +37,7 @@ sub auth_vpopmaild {
15    
16     # Get server greeting (+OK)
17     my $connect_response = <$vpopmaild_socket>;
18     - if (!$connect_response =~ /\+OK.*/) {
19     - return DECLINED;
20     - }
21     + return DECLINED unless $connect_response eq '+OK \r\n';
22    
23     # send login details
24     print $vpopmaild_socket "login $user $passClear\n\r";
25     @@ -50,7 +48,7 @@ sub auth_vpopmaild {
26     close($vpopmaild_socket);
27    
28     # check for successful login
29     - if ($login_response =~ /\+OK.*/) {
30     + if ($login_response eq '+OK+\r\n') {
31     return (OK, 'authcheckpassword');
32     }
33     else {
34     --
35     1.7.2.2
36    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed