summaryrefslogtreecommitdiff
blob: 0dc2de8b2123c96623ea2267fe8bec43aad5efe5 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
From b857da37ec211e4472070c9e870aa5a0b827563b Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Thu, 8 Dec 2011 00:09:03 +0100
Subject: [PATCH] Use /var/tmp rather than /usr/tmp

---
 README.unix  |    2 +-
 mkreadme.pl  |    2 +-
 unixos.c     |    2 +-
 unixpk.c     |    2 +-
 unixpk.man   |    2 +-
 unixunpk.man |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.unix b/README.unix
index d7a762c..c26b7c8 100644
--- a/README.unix
+++ b/README.unix
@@ -188,7 +188,7 @@ The environment variables which control munpack's behavior are:
 
      TMPDIR
           Root of directory to store partial messages awaiting 
-          reassembly.  Default is "/usr/tmp".   Partial messages
+          reassembly.  Default is "/var/tmp".   Partial messages
 	  are stored in subdirectories of $TMPDIR/m-prts-$USER/
 
 
diff --git a/mkreadme.pl b/mkreadme.pl
index a45117b..22e4e81 100755
--- a/mkreadme.pl
+++ b/mkreadme.pl
@@ -413,7 +413,7 @@ The environment variables which control munpack's behavior are:
 =unix
      TMPDIR
           Root of directory to store partial messages awaiting 
-          reassembly.  Default is "/usr/tmp".   Partial messages
+          reassembly.  Default is "/var/tmp".   Partial messages
 	  are stored in subdirectories of $TMPDIR/m-prts-$USER/
 
 =pc os2
diff --git a/unixos.c b/unixos.c
index 2243d12..fa6d0a7 100644
--- a/unixos.c
+++ b/unixos.c
@@ -87,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");
diff --git a/unixpk.c b/unixpk.c
index 3605dd1..0bae849 100644
--- a/unixpk.c
+++ b/unixpk.c
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
 	    strcpy(fnamebuf, getenv("TMPDIR"));
 	}
 	else {
-	    strcpy(fnamebuf, "/usr/tmp");
+	    strcpy(fnamebuf, "/var/tmp");
 	}
 	strcat(fnamebuf, "/mpackXXXXXX");
 	mktemp(fnamebuf);
diff --git a/unixpk.man b/unixpk.man
index de251ee..c4c9313 100644
--- a/unixpk.man
+++ b/unixpk.man
@@ -136,7 +136,7 @@ Mail the generated messages to the specified addresses.
 .SH ENVIRONMENT
 .TP
 .B TMPDIR
-Directory to store temporary files.  Default is /usr/tmp.
+Directory to store temporary files.  Default is /var/tmp.
 .TP
 .B SPLITSIZE
 Default value of the -m switch.
diff --git a/unixunpk.man b/unixunpk.man
index da384b1..8c9ab7e 100644
--- a/unixunpk.man
+++ b/unixunpk.man
@@ -107,7 +107,7 @@ see the section "OPTIONS" above.
 .SH ENVIRONMENT
 .TP
 .B TMPDIR
-Directory to store temporary files.  Default is /usr/tmp.
+Directory to store temporary files.  Default is /var/tmp.
 .SH FILES
 .TP
 .B $TMPDIR/m-prts-$USER/
-- 
1.7.8