diff options
author | Colin Walters <walters@verbum.org> | 2013-11-09 13:48:21 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-11-11 18:29:54 -0500 |
commit | 6d3d0a8ffb0fd8ae59eb35593b305ec87da8858d (patch) | |
tree | e8665a272461120fec4a533f5b93ad323fc2a76e /src | |
parent | bfa5036bfb93582c5a87c44b847957479d911e38 (diff) | |
download | polkit-6d3d0a8ffb0fd8ae59eb35593b305ec87da8858d.tar.gz |
Port internals non-deprecated PolkitProcess API where possible
We can't port everything, but in PolkitPermission and these test
cases, we can use _for_owner() with the right information.
Diffstat (limited to 'src')
-rw-r--r-- | src/polkit/polkitpermission.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polkit/polkitpermission.c b/src/polkit/polkitpermission.c index 22d195f..f8a666e 100644 --- a/src/polkit/polkitpermission.c +++ b/src/polkit/polkitpermission.c @@ -122,7 +122,7 @@ polkit_permission_constructed (GObject *object) PolkitPermission *permission = POLKIT_PERMISSION (object); if (permission->subject == NULL) - permission->subject = polkit_unix_process_new (getpid ()); + permission->subject = polkit_unix_process_new_for_owner (getpid (), 0, getuid ()); if (G_OBJECT_CLASS (polkit_permission_parent_class)->constructed != NULL) G_OBJECT_CLASS (polkit_permission_parent_class)->constructed (object); |