diff options
author | jkh <jkh@FreeBSD.org> | 1995-02-16 12:43:00 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-02-16 12:43:00 +0000 |
commit | fd8db944d6ee4ae6f81bae1471f62b1fa60e5f8c (patch) | |
tree | 61633b15d8ec9ca4f24408c79cb0e96543cc944b /usr.sbin/pkg_install/lib | |
parent | ac6ad4135e986569c3462a7fcbd59bc43726cfec (diff) | |
download | FreeBSD-src-fd8db944d6ee4ae6f81bae1471f62b1fa60e5f8c.zip FreeBSD-src-fd8db944d6ee4ae6f81bae1471f62b1fa60e5f8c.tar.gz |
Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-)
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 6 |
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 0e7fbd1..70fbf5a 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); |