summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/package.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-10-06 03:18:55 +0000
committerjkh <jkh@FreeBSD.org>1996-10-06 03:18:55 +0000
commit60397170986ecf4303e825f3c312b6fcc71e68fc (patch)
tree38d1e9624a7f8a63da6e7ce66bae5a348a065657 /release/sysinstall/package.c
parent904614b2cfc30927bd5eb11608718a1966b1e50c (diff)
downloadFreeBSD-src-60397170986ecf4303e825f3c312b6fcc71e68fc.zip
FreeBSD-src-60397170986ecf4303e825f3c312b6fcc71e68fc.tar.gz
Better PKG_TMPDIR handling.
Diffstat (limited to 'release/sysinstall/package.c')
-rw-r--r--release/sysinstall/package.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/release/sysinstall/package.c b/release/sysinstall/package.c
index d224dd3..ee4cf06 100644
--- a/release/sysinstall/package.c
+++ b/release/sysinstall/package.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: package.c,v 1.45 1996/08/03 10:11:41 jkh Exp $
+ * $Id: package.c,v 1.46 1996/10/05 12:28:36 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -104,11 +104,10 @@ package_extract(Device *dev, char *name, Boolean depended)
ret = DITEM_SUCCESS | DITEM_RESTORE;
/* Make a couple of paranoid locations for temp files to live if user specified none */
if (!variable_get("PKG_TMPDIR")) {
- Mkdir("/usr/tmp");
- Mkdir("/var/tmp");
/* Set it to a location with as much space as possible */
variable_set2("PKG_TMPDIR", "/usr/tmp");
}
+ Mkdir(variable_get("PKG_TMPDIR"));
if (!index(name, '/'))
sprintf(path, "packages/All/%s%s", name, strstr(name, ".tgz") ? "" : ".tgz");
OpenPOWER on IntegriCloud