pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/imap-uw/patches
Module Name: pkgsrc
Committed By: buhrow
Date: Mon Jan 24 22:22:12 UTC 2022
Modified Files:
pkgsrc/mail/imap-uw/patches: patch-ap
Log Message:
These patches fix a very long standing bug where aguments passed to utime(3) by IMAP-UW and the
c-client library were incorrect. Unfortunately, on 32-bit systems, the the bug went unnoticed
because all the bits lined up correctly. On 64-bit systems, this happenstance doesn't work,
meaning the mtime and atime time stamps this software modifies are completely wrong, usually
defaulting to the beginning of the epoch, but only because the random memory locations pointed
to by the incorrect pointers are 0.
Fortunately, the software package includes a portable version of the utime library call that
converts the internal usage of this function to one that's compatible with the one resident in
libc on NetBSD, FreeBSD and other BSD systems. This patch simply enables that portable code
when compiling this package on BSD systems while using the pkgsrc system.
These patches have been compiled and are running in production on a 64-bit NetBSD/amd64
system running NetBSD-9.2.
Fixes pkg/pr-56645
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/mail/imap-uw/patches/patch-ap
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/imap-uw/patches/patch-ap
diff -u pkgsrc/mail/imap-uw/patches/patch-ap:1.4 pkgsrc/mail/imap-uw/patches/patch-ap:1.5
--- pkgsrc/mail/imap-uw/patches/patch-ap:1.4 Thu Jun 11 08:13:05 2009
+++ pkgsrc/mail/imap-uw/patches/patch-ap Mon Jan 24 22:22:11 2022
@@ -1,14 +1,12 @@
-$NetBSD: patch-ap,v 1.4 2009/06/11 08:13:05 wiz Exp $
+$NetBSD: patch-ap,v 1.5 2022/01/24 22:22:11 buhrow Exp $
---- src/osdep/unix/unix.c.orig 2008-06-04 13:39:54.000000000 -0500
-+++ src/osdep/unix/unix.c
-@@ -40,8 +40,8 @@
+--- src/osdep/unix/unix.c.orig 2011-07-22 17:20:10.000000000 -0700
++++ src/osdep/unix/unix.c 2022-01-18 22:13:13.433534293 -0800
+@@ -40,7 +40,6 @@
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
-extern int errno; /* just in case */
#include <signal.h>
-+#include <utime.h> /* need this to get __utime50() prototype on NetBSD */
#include "mail.h"
#include "osdep.h"
- #include <time.h>
Home |
Main Index |
Thread Index |
Old Index