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

Contents of /rpms/qpsmtpd/sme10/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 - (show annotations) (download)
Sun Feb 7 20:49:54 2016 UTC (8 years, 8 months ago) by stephdl
Branch: MAIN
CVS Tags: qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-12_el7_sme, qpsmtpd-0_96-11_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-13_el7_sme, qpsmtpd-0_96-6_el7_sme, qpsmtpd-0_96-18_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_84-20_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-8_el7_sme, qpsmtpd-0_96-5_el7_sme, qpsmtpd-0_96-2_el7_sme, qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-14_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-9_el7_sme, qpsmtpd-0_96-4_el7_sme, qpsmtpd-0_96-1_el7_sme, qpsmtpd-0_96-3_el7_sme, qpsmtpd-0_84-18_el7_sme, qpsmtpd-0_96-10_el7_sme, qpsmtpd-0_84-19_el7_sme, HEAD
* Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.84-18.sme
- Build new rpm for sme10

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