2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

- Changed the applet to understand that a byte array, rather than

a string, will be coming in for the profile name.
This commit is contained in:
Matt Barringer
2007-08-05 22:15:02 +00:00
parent f8a72a9d2f
commit f4d6d1ab1f

View File

@@ -93,8 +93,9 @@ static DBusHandlerResult signal_filter
{
GtkTreePath *path;
GtkTreeIter listIter;
DBusMessageIter iter;
DBusMessageIter iter, subIter;
char *program_name;
int arrayLen;
/* We are about to be kicked off */
if (dbus_message_is_signal
(message, DBUS_PATH_LOCAL, "Disconnected"))
@@ -130,8 +131,10 @@ static DBusHandlerResult signal_filter
dbus_message_iter_next(&iter);
dbus_message_iter_next(&iter);
dbus_message_iter_next(&iter);
dbus_message_iter_get_basic(&iter, &program_name);
// dbus_message_iter_get_basic(&iter, &program_name);
dbus_message_iter_recurse(&iter, &subIter);
dbus_message_iter_get_fixed_array(&subIter, &program_name, &arrayLen);
if (program_name == NULL)
{
return DBUS_HANDLER_RESULT_HANDLED;