diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-11-15 15:13:24 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-11-15 15:13:24 +0000 |
commit | 00bf4cdf85ac9fcfb9a965a840cd1acc77c06f28 (patch) | |
tree | 9eeac7f83f4e78230f35d79e081f8f9aa26469e3 /usr.sbin/pkg_install/lib/pen.c | |
parent | a52673f0bc32e875d9e0f0b26bd91239469dce04 (diff) | |
download | FreeBSD-src-00bf4cdf85ac9fcfb9a965a840cd1acc77c06f28.zip FreeBSD-src-00bf4cdf85ac9fcfb9a965a840cd1acc77c06f28.tar.gz |
Improve recently committed fix for -t bug.
Submitted by: "Andrew L. Neporada" <andr@dgap.mipt.ru>
MFC after: 3 days
Diffstat (limited to 'usr.sbin/pkg_install/lib/pen.c')
-rw-r--r-- | usr.sbin/pkg_install/lib/pen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index 322067d..1714bd8 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -47,7 +47,7 @@ find_play_pen(char *pen, off_t sz) char *cp; struct stat sb; - if (pen[0] && !fexists(pen) == FAIL && (min_free(dirname(pen)) >= sz)) + if (pen[0] && isdir(dirname(pen)) == TRUE && (min_free(dirname(pen)) >= sz)) return pen; else if ((cp = getenv("PKG_TMPDIR")) != NULL && stat(cp, &sb) != FAIL && (min_free(cp) >= sz)) sprintf(pen, "%s/instmp.XXXXXX", cp); |