1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions

This commit is contained in:
Lennart Poettering 2014-10-28 15:11:39 +01:00
parent 665ea24caf
commit f2288cc63f

View File

@ -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