diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-03-01 13:08:07 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-03-01 13:08:07 +0000 |
commit | e34b063c8f640ab5d69ce191c90efc5cbbc675dd (patch) | |
tree | bd247a40f89b789cb4a260a5569d5d3533e070d6 /usr.sbin/pkg_install/info/perform.c | |
parent | 492c46ef17b36d0182567d435cf41c754c4f1f4f (diff) | |
download | FreeBSD-src-e34b063c8f640ab5d69ce191c90efc5cbbc675dd.zip FreeBSD-src-e34b063c8f640ab5d69ce191c90efc5cbbc675dd.tar.gz |
Put back several lines that I erroneously deleted in my previous commit. This
should fix recent segfault of `pkg_info -e'.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>, knu
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/info/perform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c index b350be1..4d3d50e 100644 --- a/usr.sbin/pkg_install/info/perform.c +++ b/usr.sbin/pkg_install/info/perform.c @@ -46,6 +46,9 @@ pkg_perform(char **pkgs) if (CheckPkg) { char buf[FILENAME_MAX]; + tmp = getenv(PKG_DBDIR); + if (!tmp) + tmp = DEF_LOG_DIR; snprintf(buf, FILENAME_MAX, "%s/%s", tmp, CheckPkg); return abs(access(buf, R_OK)); /* Not reached */ |