diff options
author | jkh <jkh@FreeBSD.org> | 1997-10-15 04:37:26 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-10-15 04:37:26 +0000 |
commit | e72ee0f8864efefc4787fda7b8865d540eb49d99 (patch) | |
tree | a17e2ffba2c8518162de207a8579211ba27826b6 /release/sysinstall/package.c | |
parent | d651f50b27a64bd1c30430a15563f8e76d877588 (diff) | |
download | FreeBSD-src-e72ee0f8864efefc4787fda7b8865d540eb49d99.zip FreeBSD-src-e72ee0f8864efefc4787fda7b8865d540eb49d99.tar.gz |
Fix various bogons reported in this PR.
PR: 4765
Submitted by: fdiv
Diffstat (limited to 'release/sysinstall/package.c')
-rw-r--r-- | release/sysinstall/package.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/release/sysinstall/package.c b/release/sysinstall/package.c index ff9415e..da1ec9c 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.63 1997/09/16 10:14:22 jkh Exp $ + * $Id: package.c,v 1.64 1997/09/17 16:18:16 pst Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -115,11 +115,12 @@ package_extract(Device *dev, char *name, Boolean depended) /* Be initially optimistic */ 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")) { + if (!variable_get(VAR_PKG_TMPDIR)) { /* Set it to a location with as much space as possible */ - variable_set2("PKG_TMPDIR", "/usr/tmp"); + variable_set2(VAR_PKG_TMPDIR, "/usr/tmp"); } - Mkdir(variable_get("PKG_TMPDIR")); + Mkdir(variable_get(VAR_PKG_TMPDIR)); + vsystem("chmod 1777 %s", variable_get(VAR_PKG_TMPDIR)); if (!index(name, '/')) sprintf(path, "packages/All/%s%s", name, strstr(name, ".tgz") ? "" : ".tgz"); |