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

Contents of /rpms/qpsmtpd/sme9/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 - (show annotations) (download)
Sat Feb 2 00:59:44 2013 UTC (11 years, 3 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 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