summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2014-12-18 10:28:08 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2014-12-18 10:28:08 +0100
commita98e4f1fbb2f9446f2033fc2120b7b5189b75064 (patch)
tree0d118e9b3323f6e16d1cb700f96ff0d992e597bc
parent2e827d2f6408175b6a50a6aa812e37039addb661 (diff)
Drop obsolete polkit_unix_process_new()
Use polkit_unix_process_new_for_owner() instead. Bump polkit dependency to >= 102.
-rw-r--r--configure.ac4
-rw-r--r--tools/udisksctl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 0e0c008..b110782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,11 +130,11 @@ PKG_CHECK_MODULES(GIO, [gio-unix-2.0 >= 2.36])
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
-PKG_CHECK_MODULES(POLKIT_GOBJECT_1, [polkit-gobject-1 >= 0.92])
+PKG_CHECK_MODULES(POLKIT_GOBJECT_1, [polkit-gobject-1 >= 0.102])
AC_SUBST(POLKIT_GOBJECT_1_CFLAGS)
AC_SUBST(POLKIT_GOBJECT_1_LIBS)
-PKG_CHECK_MODULES(POLKIT_AGENT_1, [polkit-agent-1 >= 0.92])
+PKG_CHECK_MODULES(POLKIT_AGENT_1, [polkit-agent-1 >= 0.102])
AC_SUBST(POLKIT_AGENT_1_CFLAGS)
AC_SUBST(POLKIT_AGENT_1_LIBS)
diff --git a/tools/udisksctl.c b/tools/udisksctl.c
index f10c828..40eb78a 100644
--- a/tools/udisksctl.c
+++ b/tools/udisksctl.c
@@ -74,7 +74,7 @@ setup_local_polkit_agent (void)
if (local_polkit_agent != NULL)
goto out;
- subject = polkit_unix_process_new (getpid ());
+ subject = polkit_unix_process_new_for_owner (getpid (), 0, getuid ());
error = NULL;
/* this will fail if we can't find a controlling terminal */