1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
$NetBSD: patch-ab,v 1.3 1998/08/07 10:40:16 agc Exp $
--- unixos.c.orig Thu Feb 16 22:39:50 1995
+++ unixos.c Thu Feb 26 00:59:01 1998
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/param.h>
#include <netdb.h>
+#include <paths.h>
#include "xmalloc.h"
#include "common.h"
@@ -89,7 +90,11 @@
strcpy(buf, getenv("TMPDIR"));
}
else {
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+ strcpy(buf, _PATH_VARTMP);
+#else
strcpy(buf, "/usr/tmp");
+#endif
}
strcat(buf, "/m-prts-");
p = getenv("USER");
*** unixpk.man.bak Fri Feb 17 00:39:50 1995
--- unixpk.man Mon Nov 11 10:19:46 1996
***************
*** 136,142 ****
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /usr/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
--- 136,142 ----
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /var/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
*** unixunpk.man.bak Fri Feb 17 00:39:50 1995
--- unixunpk.man Mon Nov 11 10:19:59 1996
***************
*** 107,113 ****
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /usr/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/
--- 107,113 ----
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /var/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/
|