First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 145456
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Natanael Copa <natanael.copa@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ssmtp-2.61-bug145456.patch files/ssmtp-2.61-bug145456.patch patch Natanael Copa 2006-08-29 02:40 0000 393 bytes Details | Diff
ssmtp-2.61-r2.ebuild ebuild that uses patch text/plain Natanael Copa 2006-08-29 02:44 0000 3.31 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 145456 depends on: Show dependency tree
Show dependency graph
Bug 145456 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-29 02:18 0000
When ssmtp is compiled against uclibc, it will create funny date headers:

Date: Tue, %_d Aug 2006 06:03:21 +0000 UV

Note the %_d.

This is because ssmtp uses a gnu extention in strftime. (see man strftime under
"GLIBC NOTES", _ (underscore))

I did a quick check what they do in Freebsd (since they dont use gnu libc) and
as I suspected, there was a patch:

--- arpadate.c.orig     Sun Dec  8 18:30:13 2002
+++ arpadate.c  Mon Apr  7 01:17:58 2003
@@ -79,7 +79,7 @@
        time_t now;

        /* RFC822 format string borrowed from GNU shellutils date.c */
-       const char *format = "%a, %_d %b %Y %H:%M:%S %z";
+       const char *format = "%a, %e %b %Y %H:%M:%S %z";

        now = time(NULL);


The solution should be to use the portable %e instead of GNU specific %_d.

------- Comment #1 From Natanael Copa 2006-08-29 02:40:42 0000 -------
Created an attachment (id=95350) [edit]
files/ssmtp-2.61-bug145456.patch

patch created against ssmtp-2.61-r2 and tested on uclibc. Works like a charm ;)

------- Comment #2 From Natanael Copa 2006-08-29 02:44:18 0000 -------
Created an attachment (id=95351) [edit]
ebuild that uses patch

For your convienece.

------- Comment #3 From Natanael Copa 2006-12-04 22:52:00 0000 -------
Could this patch please be applied? It does not hurt GNU systems and it solves
a real problem on non-GNU systems. (like uclibc freebsd)

------- Comment #4 From Natanael Copa 2008-03-17 13:07:20 0000 -------
Whats the status here? 

This patch is really trivial. Could someone just commit and get done with it?
(or at least close with a WONTFIX so know I'll have to maintain it my local
overlay)

------- Comment #5 From Tobias Scherbaum 2008-06-10 20:15:35 0000 -------
This one has been fixed upstream in 2.62 which just hit CVS. Please test and
re-open if this bug still occurs.

First Last Prev Next    No search results available      Search page      Enter new bug