PolicyKit: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Tue Feb 26 12:51:39 PST 2008
src/polkit-dbus/polkit-simple.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit fd51264a459d4e0ac0fecfabcc42c0ecca425050
Author: David Zeuthen <davidz at redhat.com>
Date: Tue Feb 26 15:48:39 2008 -0500
avoid use normal timeout when showing auth dialog; use INT_MAX instead
Reported by Dan P. Berrange.
diff --git a/src/polkit-dbus/polkit-simple.c b/src/polkit-dbus/polkit-simple.c
index 8dbe089..4654cdf 100644
--- a/src/polkit-dbus/polkit-simple.c
+++ b/src/polkit-dbus/polkit-simple.c
@@ -49,6 +49,7 @@
#include <grp.h>
#include <unistd.h>
#include <errno.h>
+#include <limits.h>
#include <polkit/polkit-private.h>
#include "polkit-simple.h"
@@ -372,7 +373,7 @@ polkit_auth_obtain (const char *action_id, polkit_uint32_t xid, pid_t pid, DBusE
DBUS_TYPE_UINT32, &xid,
DBUS_TYPE_UINT32, &pid,
DBUS_TYPE_INVALID);
- reply = dbus_connection_send_with_reply_and_block (bus, message, -1, error);
+ reply = dbus_connection_send_with_reply_and_block (bus, message, INT_MAX, error);
if (reply == NULL || dbus_error_is_set (error)) {
ret = _auth_show_dialog_text (action_id, pid, error);
goto out;
More information about the hal-commit
mailing list