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:
parent
c308228566
commit
1edf3f9bdb
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user