diff options
Diffstat (limited to 'converters/mpack/patches/patch-ae')
-rw-r--r-- | converters/mpack/patches/patch-ae | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/converters/mpack/patches/patch-ae b/converters/mpack/patches/patch-ae index b9a7b8c0fed..bbba1fa6ef0 100644 --- a/converters/mpack/patches/patch-ae +++ b/converters/mpack/patches/patch-ae @@ -1,12 +1,7 @@ -$NetBSD: patch-ae,v 1.3 2010/01/15 23:47:14 dholland Exp $ +$NetBSD: patch-ae,v 1.4 2010/04/20 10:26:40 is Exp $ -- Include fixes for modern Unix. -- Suppress mktemp() warning on NetBSD; callers use O_EXCL. - -Upstream: as far as I know not actively maintained upstream. - ---- unixpk.c.orig 2003-07-21 16:50:41.000000000 -0400 -+++ unixpk.c 2009-02-15 15:09:47.000000000 -0500 +--- unixpk.c.orig 2003-07-21 22:50:41.000000000 +0200 ++++ unixpk.c @@ -22,8 +22,16 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. @@ -34,3 +29,16 @@ Upstream: as far as I know not actively maintained upstream. extern int optind; extern char *optarg; +@@ -164,7 +169,11 @@ int main(int argc, char **argv) + strcpy(fnamebuf, getenv("TMPDIR")); + } + else { +- strcpy(fnamebuf, "/usr/tmp"); ++#if defined(P_tmpdir) ++ strcpy(fnamebuf, P_tmpdir); ++#else ++ strcpy(fnamebuf, "/var/tmp"); ++#endif + } + strcat(fnamebuf, "/mpackXXXXXX"); + mktemp(fnamebuf); |