Move the temporary directory base from /usr/tmp to /tmp
authorAdrian Pistol <vifino@tty.sh>
Mon, 31 Oct 2016 03:05:00 +0000 (04:05 +0100)
committerAdrian Pistol <vifino@tty.sh>
Mon, 31 Oct 2016 03:05:00 +0000 (04:05 +0100)
On many modern systems, /usr/tmp may not exist. However, /tmp almost always does.

defines.h

index 1f27603..0d04f95 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -113,7 +113,7 @@ typedef unsigned long u_int32_t;
 #define NFILE   40             /* Number of file pointers we can buffer */
 #define ValidFD(x) ((x>=0) && (x<NFILE))
                                /* Used for opening on directories */
-#define TMP_PLATE       "/usr/tmp/apout_dir.XXXXXX"
+#define TMP_PLATE       "/tmp/apout_tmp_dir.XXXXXX"
 
 
 /* Set up prototype macro for