From 7acdff49f7c8b082f086e1f79f58d7289c7e19a7 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 22 Aug 2016 21:04:18 +0200 Subject: [PATCH] Let dbus-daemon return allowed auth mechanisms in case of rejected auth. Allowed auth mechanisms are the ones that are implemented and configured in bus config file. https://bugs.freedesktop.org/show_bug.cgi?id=96577 --- dbus/dbus-auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index 5a862fa..a5d0eae 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -1650,14 +1650,14 @@ send_rejected (DBusAuth *auth) goto nomem; i = 0; - while (all_mechanisms[i].mechanism != NULL) + while (auth->allowed_mechs[i] != NULL) { if (!_dbus_string_append (&command, " ")) goto nomem; if (!_dbus_string_append (&command, - all_mechanisms[i].mechanism)) + auth->allowed_mechs[i])) goto nomem; ++i; -- 2.6.6