- stop spreading lies and actually use /var/tmp as temp directory.
This commit is contained in:
parent
7365c2e720
commit
f3ba660c88
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.23 2012/01/08 00:12:12 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.24 2012/10/21 12:59:43 jasper Exp $
|
||||
|
||||
COMMENT= external MIME packer/unpacker
|
||||
|
||||
DISTNAME= mpack-1.6
|
||||
REVISION= 0
|
||||
CATEGORIES= converters mail news
|
||||
|
||||
# BSD
|
||||
|
@ -1,10 +1,10 @@
|
||||
$OpenBSD: patch-unixos_c,v 1.4 2012/01/08 00:12:13 sthen Exp $
|
||||
$OpenBSD: patch-unixos_c,v 1.5 2012/10/21 12:59:43 jasper Exp $
|
||||
|
||||
Fixes from Sebastian Pipping
|
||||
http://git.goodpoint.de/?p=mpack.git;a=commitdiff;h=0c87201f64491575350b18d04c62ec142e119d1f
|
||||
|
||||
--- unixos.c.orig Mon Jul 21 21:54:05 2003
|
||||
+++ unixos.c Sun Jan 8 00:06:09 2012
|
||||
--- unixos.c.orig Mon Jul 21 22:54:05 2003
|
||||
+++ unixos.c Sun Oct 21 14:55:35 2012
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <netdb.h>
|
||||
@ -24,6 +24,15 @@ http://git.goodpoint.de/?p=mpack.git;a=commitdiff;h=0c87201f64491575350b18d04c62
|
||||
int overwrite_files = 0;
|
||||
int didchat;
|
||||
|
||||
@@ -90,7 +87,7 @@ char *os_idtodir(char *id)
|
||||
strcpy(buf, getenv("TMPDIR"));
|
||||
}
|
||||
else {
|
||||
- strcpy(buf, "/usr/tmp");
|
||||
+ strcpy(buf, "/var/tmp");
|
||||
}
|
||||
strcat(buf, "/m-prts-");
|
||||
p = getenv("USER");
|
||||
@@ -137,9 +134,9 @@ FILE *os_createnewfile(char *fname)
|
||||
FILE *ret;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-unixpk_c,v 1.4 2012/01/08 00:12:13 sthen Exp $
|
||||
--- unixpk.c.orig Mon Jul 21 21:50:41 2003
|
||||
+++ unixpk.c Sun Jan 8 00:04:20 2012
|
||||
$OpenBSD: patch-unixpk_c,v 1.5 2012/10/21 12:59:43 jasper Exp $
|
||||
--- unixpk.c.orig Mon Jul 21 22:50:41 2003
|
||||
+++ unixpk.c Sun Oct 21 14:57:31 2012
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -10,8 +10,12 @@ $OpenBSD: patch-unixpk_c,v 1.4 2012/01/08 00:12:13 sthen Exp $
|
||||
#include "common.h"
|
||||
#include "version.h"
|
||||
#include "xmalloc.h"
|
||||
@@ -167,7 +169,7 @@ int main(int argc, char **argv)
|
||||
strcpy(fnamebuf, "/usr/tmp");
|
||||
@@ -164,10 +166,10 @@ int main(int argc, char **argv)
|
||||
strcpy(fnamebuf, getenv("TMPDIR"));
|
||||
}
|
||||
else {
|
||||
- strcpy(fnamebuf, "/usr/tmp");
|
||||
+ strcpy(fnamebuf, "/var/tmp");
|
||||
}
|
||||
strcat(fnamebuf, "/mpackXXXXXX");
|
||||
- mktemp(fnamebuf);
|
||||
|
Loading…
Reference in New Issue
Block a user