pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt-devel Avoid crash with 64bit time_t.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c035ba122144
branches:  trunk
changeset: 553967:c035ba122144
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Thu Feb 05 13:45:28 2009 +0000

description:
Avoid crash with 64bit time_t.
>From PR pkg/40548

diffstat:

 mail/mutt-devel/Makefile         |   4 ++--
 mail/mutt-devel/distinfo         |   3 ++-
 mail/mutt-devel/patches/patch-aq |  29 +++++++++++++++++++++++++++++
 3 files changed, 33 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r acb7438c558b -r c035ba122144 mail/mutt-devel/Makefile
--- a/mail/mutt-devel/Makefile  Thu Feb 05 13:45:27 2009 +0000
+++ b/mail/mutt-devel/Makefile  Thu Feb 05 13:45:28 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.72 2009/01/27 19:50:33 tonio Exp $
+# $NetBSD: Makefile,v 1.73 2009/02/05 13:45:28 tonio Exp $
 
 DISTNAME=              mutt-1.5.19
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            mail
 MUTT_SITES=            ftp://ftp.mutt.org/mutt/ \
                        ftp://ftp.stealth.net/pub/mirrors/ftp.mutt.org/pub/mutt/ \
diff -r acb7438c558b -r c035ba122144 mail/mutt-devel/distinfo
--- a/mail/mutt-devel/distinfo  Thu Feb 05 13:45:27 2009 +0000
+++ b/mail/mutt-devel/distinfo  Thu Feb 05 13:45:28 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.54 2009/01/27 19:50:33 tonio Exp $
+$NetBSD: distinfo,v 1.55 2009/02/05 13:45:28 tonio Exp $
 
 SHA1 (mutt-1.5.19.tar.gz) = 96e4cc1e1419ba816fcc19d77255978e62c20793
 RMD160 (mutt-1.5.19.tar.gz) = dcb8d027593bfccd62eb7aba338007bce3c7e22e
@@ -12,3 +12,4 @@
 SHA1 (patch-an) = 96eb3aeea3f567b4835eac5d799355f62ad5a455
 SHA1 (patch-ao) = a5dddb01d30f28337ca825c6461139c2d9f288d5
 SHA1 (patch-ap) = c6f79d5c4e19efdc15e9d5a59934da52b16b7a62
+SHA1 (patch-aq) = d327ac440e65516515ddc1646b849b27af61e864
diff -r acb7438c558b -r c035ba122144 mail/mutt-devel/patches/patch-aq
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mutt-devel/patches/patch-aq  Thu Feb 05 13:45:28 2009 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-aq,v 1.1 2009/02/05 13:45:28 tonio Exp $
+
+Avoid crash with 64bit time_t.
+From PR pkg/40548
+
+--- mh.c.orig  2009-01-05 20:20:53.000000000 +0100
++++ mh.c
+@@ -1242,8 +1242,8 @@ int maildir_open_new_message (MESSAGE * 
+   omask = umask (mh_umask (dest));
+   FOREVER
+   {
+-    snprintf (path, _POSIX_PATH_MAX, "%s/tmp/%s.%ld.%u_%d.%s%s",
+-            dest->path, subdir, time (NULL), (unsigned int)getpid (),
++    snprintf (path, _POSIX_PATH_MAX, "%s/tmp/%s.%lld.%u_%d.%s%s",
++            dest->path, subdir, (long long)time (NULL), (unsigned int)getpid (),
+             Counter++, NONULL (Hostname), suffix);
+ 
+     dprint (2, (debugfile, "maildir_open_new_message (): Trying %s.\n",
+@@ -1328,8 +1328,8 @@ int maildir_commit_message (CONTEXT * ct
+   /* construct a new file name. */
+   FOREVER
+   {
+-    snprintf (path, _POSIX_PATH_MAX, "%s/%ld.%u_%d.%s%s", subdir,
+-            time (NULL), (unsigned int)getpid (), Counter++, 
++    snprintf (path, _POSIX_PATH_MAX, "%s/%lld.%u_%d.%s%s", subdir,
++            (long long)time (NULL), (unsigned int)getpid (), Counter++, 
+             NONULL (Hostname), suffix);
+     snprintf (full, _POSIX_PATH_MAX, "%s/%s", ctx->path, path);
+ 



Home | Main Index | Thread Index | Old Index