diff options
author | Guillem Jover <guillem@debian.org> | 2019-11-05 02:55:04 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-11-26 02:42:44 +0100 |
commit | b41fe887e8caf09107cd65d8f561b00d043561d9 (patch) | |
tree | e656fe400091c014e68447636b7e243b62fcf3aa /src | |
parent | 1fcb291686f6bad5b3d7dfe619fcd840d6ab5d3a (diff) | |
download | dpkg-b41fe887e8caf09107cd65d8f561b00d043561d9.tar.gz |
dpkg: Use DPKG_ADMINDIR to set the admindir
This was done in the name of security, but it does not make much sense
as root should make sure to be running in a clean environment. This is
problematic as it makes the interface hard to understand, and produces
unexpected behavior as dpkg can be called from within itself, or as a
wrapper for dpkg-query, which will then not inherit the admindir value.
Closes: #900071
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 61e186904..602d4d5d3 100644 --- a/src/main.c +++ b/src/main.c @@ -194,7 +194,7 @@ int f_autodeconf=0, f_nodebsig=0; int f_triggers = 0; int errabort = 50; -static const char *admindir = ADMINDIR; +static const char *admindir; const char *instdir= ""; struct pkg_list *ignoredependss = NULL; |