--- unixos.c.orig Thu Feb 16 22:39:50 1995 +++ unixos.c Thu Feb 26 00:59:01 1998 @@ -29,6 +29,7 @@ #include #include #include +#include #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/