PolkitUnixSession: Set error if we cannot find a session for the given pid
authorDavid Zeuthen <davidz@redhat.com>
Mon, 6 Feb 2012 16:24:53 +0000 (11:24 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 6 Feb 2012 16:34:09 +0000 (11:34 -0500)
commitc46d2d13eac240d2a609b2dd8fc617ea18a78bfa
treed50467e175b9937f903ead4998bc8c2a2f0b4362
parent5b11d5e0698e8ee00a96e16bc3547c6d571ef6e1
PolkitUnixSession: Set error if we cannot find a session for the given pid

Also, don't treat the integer returned by sd_pid_get_session() as a
boolean because that's just confusing. Also, don't confuse memory
supposed to be freed by g_free() and free(3) with each other. See

 https://bugzilla.redhat.com/show_bug.cgi?id=787222

for more details.

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkit/polkitunixsession-systemd.c