summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/examples/cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/cancel.c b/src/examples/cancel.c
index 7978ebe..1470025 100644
--- a/src/examples/cancel.c
+++ b/src/examples/cancel.c
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
g_printerr ("Parent process was reaped by init(1)\n");
return 1;
}
- subject = polkit_unix_process_new (parent_pid);
+ subject = polkit_unix_process_new_for_owner (parent_pid, 0, getuid ());
cancellable = g_cancellable_new ();