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
+3
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