summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-717891-abolute-uris-for-proxies
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-29 22:09:51 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-29 22:31:43 +0200
commitf1e8e9da00ccf91c924cd3edad0fc01d1b2dc820 (patch)
treea6f2aca576d3543934dd9b2f8cf5a063251316be /test/integration/test-bug-717891-abolute-uris-for-proxies
parent2b8221d66a8284042fc53c7bbb14bb9750e9137f (diff)
try to detect sudo spawned root-shell in prefixing
It is a try as the we need to inspect SUDO_COMMAND which could be anything – apt, apt-get, in /usr/bin, in a $DPKG_ROOT "chroot", build from source, aliases, … The best we can do is look if the SHELL variable is equal to the SUDO_COMMAND which would mean a shell was invoked. That isn't fail-safe if different shells are involved as sub-shells have the tendency of not overriding the SHELL so a bash started from within zsh can happily pretend to be still zsh, so we could have a look at /etc/shells for a list, but oh well, we have to stop somewhere I guess. This sudo-prefixing feature is a gimmick after all. Closes: 825742
Diffstat (limited to 'test/integration/test-bug-717891-abolute-uris-for-proxies')
0 files changed, 0 insertions, 0 deletions