Package: libspf2-2
Version: 1.2.5.dfsg-4
Severity: minor
Tags: patch
Hi Magnus,
I spotted a few minor issues with the package (patch attached).
> diff -ur libspf2-1.2.5.dfsg.old/debian/changelog
> libspf2-1.2.5.dfsg/debian/changelog
> --- libspf2-1.2.5.dfsg.old/debian/changelog 2008-02-12 17:19:36.000000000
> +0100
> +++ libspf2-1.2.5.dfsg/debian/changelog 2008-02-12 17:27:35.000000000
> +0100
> @@ -18,8 +18,9 @@
> a permanent error as well (Closes: #435139).
> * 41_none_not_neutral.dpatch: Use a diffent explanation for
> SPF_RESULT_NONE than the one for SPF_RESULT_NEUTRAL (Closes: #435140).
> - * 42_empty_sender.dpatch: Use the HELO identity in MAIL FROM checks if
> - the sender address has been set to the empty string (Closes: #431239).
> + * 42_empty_sender.dpatch (rewritten differently): Use the HELO identity
> in
> + MAIL FROM checks if the sender address has been set to the empty string
> + (Closes: #431239).
> * debian/control: Add XS-Vcs-* fields.
Indentation is broken here. This lead me to believe 42_empty_sender.dpatch
was unrelated to the patch I sent before (which got me confused for a while).
Btw, I notice you rewrote the 42_empty_sender.dpatch part of my patch
differently.
Is your new code tested / known to work?
> ## All lines beginning with `## DP:' are a description of the patch.
> ## DP: If SPF_request_set_env_from() is called with from set to the empty
> -## DP: string, use the HELO identity. Also fix incorrect handling when
> +## DP: string (i.e a DSN), use the HELO identity. Also fix incorrect
> handling when
> ## DP: the local part is empty (but the "@" is present).
Just a suggestion, to make it clear why this is done.
> diff -ur libspf2-1.2.5.dfsg.old/src/libspf2/spf_server.c
> libspf2-1.2.5.dfsg/src/libspf2/spf_server.c
> --- libspf2-1.2.5.dfsg.old/src/libspf2/spf_server.c 2005-02-19
> 04:52:58.000000000 +0100
> +++ libspf2-1.2.5.dfsg/src/libspf2/spf_server.c 2008-02-12
> 17:29:22.000000000 +0100
> @@ -279,8 +279,7 @@
> SPF_dns_rr_free(rr_txt);
> spf_response->result = SPF_RESULT_NONE;
> spf_response->reason = SPF_REASON_FAILURE;
> - return SPF_response_add_error(spf_response,
> -SPF_E_NOT_SPF,
> + return SPF_response_add_error(spf_response,
> SPF_E_NOT_SPF,
> "Host '%s' not found.", domain);
> break;
Just an ugly glitch I found. I think my patch included fix for this, can't
recall right now.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ur libspf2-1.2.5.dfsg.old/debian/changelog
libspf2-1.2.5.dfsg/debian/changelog
--- libspf2-1.2.5.dfsg.old/debian/changelog 2008-02-12 17:19:36.000000000
+0100
+++ libspf2-1.2.5.dfsg/debian/changelog 2008-02-12 17:27:35.000000000 +0100
@@ -18,8 +18,9 @@
a permanent error as well (Closes: #435139).
* 41_none_not_neutral.dpatch: Use a diffent explanation for
SPF_RESULT_NONE than the one for SPF_RESULT_NEUTRAL (Closes: #435140).
- * 42_empty_sender.dpatch: Use the HELO identity in MAIL FROM checks if
- the sender address has been set to the empty string (Closes: #431239).
+ * 42_empty_sender.dpatch (rewritten differently): Use the HELO identity in
+ MAIL FROM checks if the sender address has been set to the empty string
+ (Closes: #431239).
* debian/control: Add XS-Vcs-* fields.
-- Magnus Holmgren <[EMAIL PROTECTED]> Wed, 22 Aug 2007 17:13:27 +0200
diff -ur libspf2-1.2.5.dfsg.old/debian/patches/42_empty_sender.dpatch
libspf2-1.2.5.dfsg/debian/patches/42_empty_sender.dpatch
--- libspf2-1.2.5.dfsg.old/debian/patches/42_empty_sender.dpatch
2008-02-12 17:19:36.000000000 +0100
+++ libspf2-1.2.5.dfsg/debian/patches/42_empty_sender.dpatch 2008-02-12
17:27:01.000000000 +0100
@@ -3,7 +3,7 @@
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: If SPF_request_set_env_from() is called with from set to the empty
-## DP: string, use the HELO identity. Also fix incorrect handling when
+## DP: string (i.e a DSN), use the HELO identity. Also fix incorrect handling
when
## DP: the local part is empty (but the "@" is present).
@DPATCH@
diff -ur libspf2-1.2.5.dfsg.old/src/libspf2/spf_server.c
libspf2-1.2.5.dfsg/src/libspf2/spf_server.c
--- libspf2-1.2.5.dfsg.old/src/libspf2/spf_server.c 2005-02-19
04:52:58.000000000 +0100
+++ libspf2-1.2.5.dfsg/src/libspf2/spf_server.c 2008-02-12 17:29:22.000000000
+0100
@@ -279,8 +279,7 @@
SPF_dns_rr_free(rr_txt);
spf_response->result = SPF_RESULT_NONE;
spf_response->reason = SPF_REASON_FAILURE;
- return SPF_response_add_error(spf_response,
-SPF_E_NOT_SPF,
+ return SPF_response_add_error(spf_response,
SPF_E_NOT_SPF,
"Host '%s' not found.", domain);
break;