From: Lennart Poettering Date: Tue, 28 Oct 2014 14:11:39 +0000 (+0100) Subject: polkit: actually generate new InteractiveAuthorizationRequired error on the right... X-Git-Tag: v217~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f2288cc63fcd428860479ba43122341c39e3a926;ds=sidebyside polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions --- diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c index b8559e982..43acf5b95 100644 --- a/src/libsystemd/sd-bus/bus-util.c +++ b/src/libsystemd/sd-bus/bus-util.c @@ -382,6 +382,9 @@ int bus_verify_polkit_async( if (authorized) return 1; + if (challenge) + return sd_bus_error_set(error, SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED, "Interactive authentication required."); + return -EACCES; } #endif