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
This commit is contained in:
Maxim Sobolev 2001-03-01 13:08:07 +00:00
parent c308228566
commit 1edf3f9bdb

View File

@ -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 */