/[smeserver]/rpms/qpsmtpd/sme10/0012-fix-copy-paste-error-in-auth_flat_file.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme10/0012-fix-copy-paste-error-in-auth_flat_file.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Feb 7 20:49:54 2016 UTC (8 years, 9 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 stephdl 1.1 From 8b892c33ad456bf8f422b77292d0e288e5994643 Mon Sep 17 00:00:00 2001
2     From: Matt Simerson <matt@tnpi.net>
3     Date: Tue, 11 May 2010 01:16:54 -0400
4     Subject: fix copy/paste error in auth_flat_file
5    
6     correct copy/paste error, where auth_flat_file methods were named authsql in auth_flat plugin
7    
8     Signed-off-by: Robert <rspier@pobox.com>
9     ---
10     plugins/auth/auth_flat_file | 4 ++--
11     t/plugin_tests/auth/auth_flat_file | 6 +++---
12     2 files changed, 5 insertions(+), 5 deletions(-)
13    
14     diff --git a/plugins/auth/auth_flat_file b/plugins/auth/auth_flat_file
15     index 6a82342..32f2512 100644
16     --- a/plugins/auth/auth_flat_file
17     +++ b/plugins/auth/auth_flat_file
18     @@ -35,10 +35,10 @@ use Digest::HMAC_MD5 qw(hmac_md5_hex);
19     sub register {
20     my ( $self, $qp ) = @_;
21    
22     - $self->register_hook("auth-cram-md5", "authsql");
23     + $self->register_hook("auth-cram-md5", "auth_flat_file");
24     }
25    
26     -sub authsql {
27     +sub auth_flat_file {
28     my ( $self, $transaction, $method, $user, $passClear, $passHash, $ticket ) =
29     @_;
30    
31     diff --git a/t/plugin_tests/auth/auth_flat_file b/t/plugin_tests/auth/auth_flat_file
32     index 7f36f23..c4218bd 100644
33     --- a/t/plugin_tests/auth/auth_flat_file
34     +++ b/t/plugin_tests/auth/auth_flat_file
35     @@ -2,7 +2,7 @@
36    
37     sub register_tests {
38     my $self = shift;
39     - $self->register_test("test_authsql", 3);
40     + $self->register_test("test_auth_flat_file", 3);
41     }
42    
43     my @u_list = qw ( good bad none );
44     @@ -12,13 +12,13 @@ my %u_data = (
45     none => [ 'none@example.com', DECLINED, '' ],
46     );
47    
48     -sub test_authsql {
49     +sub test_auth_flat_file {
50     my $self = shift;
51     my ($tran, $ret, $note, $u, $r, $p, $a );
52     $tran = $self->qp->transaction;
53     for $u ( @u_list ) {
54     ( $a,$r,$p ) = @{$u_data{$u}};
55     - ($ret, $note) = $self->authsql($tran,'CRAMMD5',$a,$p);
56     + ($ret, $note) = $self->auth_flat_file($tran,'CRAMMD5',$a,$p);
57     defined $note or $note='No-Message';
58     is ($ret, $r, $note);
59     # - for debugging.
60     --
61     1.7.2.2
62    

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