diff options
Diffstat (limited to 'usr.sbin/pkg_install/info')
-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 */ |