mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-)
This commit is contained in:
parent
c21ad9f78e
commit
87e4e7246c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6501
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user