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 /man | |
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 'man')
-rw-r--r-- | man/dpkg.man | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/man/dpkg.man b/man/dpkg.man index 659e87978..5f0a5e973 100644 --- a/man/dpkg.man +++ b/man/dpkg.man @@ -938,6 +938,11 @@ Sets the force flags (since dpkg 1.19.5). When this variable is present, no built-in force defaults will be applied. If the variable is present but empty, all force flags will be disabled. .TP +.B DPKG_ADMINDIR +If set and the \fB\-\-admindir\fP or \fB\-\-root\fP options have not been +specified, it will be used as the \fBdpkg\fP administrative directory +(since dpkg 1.20.0). +.TP .B DPKG_FRONTEND_LOCKED Set by a package manager frontend to notify dpkg that it should not acquire the frontend lock (since dpkg 1.19.1). |