From: David Zeuthen Date: Tue, 23 Oct 2007 23:38:00 +0000 (-0400) Subject: remember to set uid on PolKitSession X-Git-Tag: POLICY_KIT_0_7~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e32810155aef77cbfbc40e2150e40ab82419efa7;p=platform%2Fupstream%2Fpolkit.git 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;