summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-02-16 12:43:00 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-02-16 12:43:00 +0000
commit87e4e7246c82907e7c07811f10ae1f21f8af1162 (patch)
tree61633b15d8ec9ca4f24408c79cb0e96543cc944b /usr.sbin/pkg_install/lib
parentc21ad9f78ef9d9e45a3e073c2c3754da331526d2 (diff)
downloadsrc-test2-87e4e7246c82907e7c07811f10ae1f21f8af1162.tar.gz
src-test2-87e4e7246c82907e7c07811f10ae1f21f8af1162.zip
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/pen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 0e7fbd1fc5f7..70fbf5aed85c 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: pen.c,v 1.7 1994/10/14 05:56:15 jkh Exp $";
+static const char *rcsid = "$Id: pen.c,v 1.8 1995/02/15 03:48:13 jkh Exp $";
#endif
/*
@@ -42,7 +42,7 @@ make_playpen(char *pen, size_t sz)
if (!pen) {
char *cp;
- if ((cp = getenv("TMPDIR")) != NULL)
+ if ((cp = getenv("PKG_TMPDIR")) != NULL)
sprintf(Pen, "%s/instmp.XXXXXX", cp);
else
strcpy(Pen, "/var/tmp/instmp.XXXXXX");
@@ -63,7 +63,7 @@ make_playpen(char *pen, size_t sz)
}
if (min_free(Pen) < sz) {
rmdir(Pen);
- barf("%s doesn't have enough free space. Please set your TMPDIR\nenvironment variable to a location with more space and\ntry the command again.", Pen);
+ barf("%s doesn't have enough free space. Please set your PKG_TMPDIR\nenvironment variable to a location with more space and\ntry the command again.", Pen);
}
if (chdir(Pen) == FAIL)
barf("Can't chdir to '%s'.", Pen);