Commit 58f66e6c authored by Simon McVittie's avatar Simon McVittie
Browse files

dbus-print-message: conditionalize Unix FD handling on DBUS_UNIX

We close() the fd after we have printed it, but close() isn't
standard functionality on Windows. Unix FD-passing is never going
to work on non-Unix platforms anyway.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89428

Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
parent 188884dd
...@@ -505,6 +505,7 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth) ...@@ -505,6 +505,7 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth)
break; break;
} }
#ifdef DBUS_UNIX
case DBUS_TYPE_UNIX_FD: case DBUS_TYPE_UNIX_FD:
{ {
int fd; int fd;
...@@ -520,6 +521,7 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth) ...@@ -520,6 +521,7 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth)
break; break;
} }
#endif
default: default:
printf (" (dbus-monitor too dumb to decipher arg type '%c')\n", type); printf (" (dbus-monitor too dumb to decipher arg type '%c')\n", type);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment