PolicyKit: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Tue Oct 23 16:38:48 PDT 2007
polkit-dbus/polkit-dbus.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit e32810155aef77cbfbc40e2150e40ab82419efa7
Author: David Zeuthen <davidz at redhat.com>
Date: Tue Oct 23 19:38:00 2007 -0400
remember to set uid on PolKitSession
diff --git a/polkit-dbus/polkit-dbus.c b/polkit-dbus/polkit-dbus.c
index 5ac8457..d7c1f8c 100644
--- a/polkit-dbus/polkit-dbus.c
+++ b/polkit-dbus/polkit-dbus.c
@@ -220,6 +220,11 @@ polkit_session_new_from_objpath (DBusConnection *con, const char *objpath, uid_t
if (session == NULL) {
goto out;
}
+ if (!polkit_session_set_uid (session, uid)) {
+ polkit_session_unref (session);
+ session = NULL;
+ goto out;
+ }
if (!polkit_session_set_ck_objref (session, objpath)) {
polkit_session_unref (session);
session = NULL;
More information about the hal-commit
mailing list