From e250df1a623fd08f8a5afe2d94bd29a35e872725 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 21 Mar 2017 09:27:25 +0100 Subject: Show permission error if ProxyAutoDetect cmd can't be executed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As the proxy commands are not executed as root, a user can run into permission errors (s)he isn't expecting – as our switching is an implementation detail – so the error message in that case should really be better than a generic "error code 100" sending the user in the wrong direction as that implies the command was executed, but errored out. Closes: 857885 --- test/integration/test-bug-717891-abolute-uris-for-proxies | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/integration/test-bug-717891-abolute-uris-for-proxies') diff --git a/test/integration/test-bug-717891-abolute-uris-for-proxies b/test/integration/test-bug-717891-abolute-uris-for-proxies index 323322283..5f1b7546c 100755 --- a/test/integration/test-bug-717891-abolute-uris-for-proxies +++ b/test/integration/test-bug-717891-abolute-uris-for-proxies @@ -46,3 +46,8 @@ The following NEW packages will be installed: 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Inst unrelated (0.5~squeeze1 unstable [all]) Conf unrelated (0.5~squeeze1 unstable [all])' aptget install unrelated -s + +chmod 444 "${TMPWORKINGDIRECTORY}/apt-proxy-detect" +msgtest 'Check that non-executable proxy commands result in' 'permission error' +testfailure --nomsg aptget update +testsuccess grep 'can not be executed' rootdir/tmp/testfailure.output -- cgit v1.2.3