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

Contents of /rpms/qpsmtpd/sme8/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)
Sun Nov 14 20:50:20 2010 UTC (14 years ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_84-3_el5_sme, qpsmtpd-0_84-6_el5_sme, qpsmtpd-0_84-2_el5_sme, qpsmtpd-0_84-5_el5_sme, qpsmtpd-0_84-8_el5_sme, qpsmtpd-0_84-9_el5_sme, qpsmtpd-0_84-4_el5_sme, qpsmtpd-0_84-7_el5_sme, HEAD
Error occurred while calculating annotation data.
* Sun Nov 14 2010 <slords@mail.com> 0.84-2.sme
- Sync with upstream git repo.
- Fix require_resolvable_fromhost doesn't work [SME: 6369]
- Fix TLS security defaults [SME: 6366]
- Fix fatal errors when mail has no headers [SME: 6345]

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