Control: tags -1 moreinfo Hi!
On Fri, 2018-05-25 at 19:47:50 +0300, Alexander Zhukov wrote: > Package: dpkg > Version: 1.19.0.5 > dpkg ignores DPKG_ADMINDIR environment variable because in main.c on > line 207 admindir variable incorrectly intitialized with ADMINDIR > define. The variable must be initialized with NULL. Otherwise > DPKG_ADMINDIR is always ignored (see lib/dpkg/dbdir.c, function > dpkg_db_set_dir. That was done on purpose when this got implemented, see commit e63e1fa4a4afdf98847f13f2506a0aeea68c33c7 and bug #97076 for more details. You'll see that the variable is not documented in the dpkg man page as an External variable. The concern back then was that it was a possible security issue, and dpkg itself should ignore such variable. Perhaps that was too conservative and it's hindering some usages? Where did you find this to be a problem? The only one I'm aware might be a problem is when dpkg acts as a dpkg-query frontend. Thanks, Guillem

