Index: ChangeLog =================================================================== RCS file: /cvs/dbus/dbus/ChangeLog,v retrieving revision 1.1095 diff -u -p -r1.1095 ChangeLog --- ChangeLog 25 Aug 2006 19:59:49 -0000 1.1095 +++ ChangeLog 27 Aug 2006 21:57:49 -0000 @@ -1,3 +1,8 @@ +2006-08-27 Julio M. Merino Vidal + + * dbus/dbus-transport-unix.c: Make the exchange_credentials function + print some debugging messages when verbose mode is enabled. + 2006-08-25 John (J5) Palmieri * test/Makefile.am: change find to use syntax that works with non Index: dbus/dbus-transport-unix.c =================================================================== RCS file: /cvs/dbus/dbus/dbus/dbus-transport-unix.c,v retrieving revision 1.50 diff -u -p -r1.50 dbus-transport-unix.c --- dbus/dbus-transport-unix.c 14 Aug 2006 19:11:35 -0000 1.50 +++ dbus/dbus-transport-unix.c 27 Aug 2006 21:57:49 -0000 @@ -338,32 +338,40 @@ exchange_credentials (DBusTransport *tra dbus_bool_t do_writing) { DBusTransportUnix *unix_transport = (DBusTransportUnix*) transport; + DBusError error; + _dbus_verbose ("exchange_credentials: do_reading = %d, do_writing = %d\n", + do_reading, do_writing); + + dbus_error_init (&error); if (do_writing && transport->send_credentials_pending) { if (_dbus_send_credentials_unix_socket (unix_transport->fd, - NULL)) + &error)) { transport->send_credentials_pending = FALSE; } else { - _dbus_verbose ("Failed to write credentials\n"); + _dbus_verbose ("Failed to write credentials: %s\n", error.message); + dbus_error_free (&error); do_io_error (transport); } } + dbus_error_init (&error); if (do_reading && transport->receive_credentials_pending) { if (_dbus_read_credentials_unix_socket (unix_transport->fd, &transport->credentials, - NULL)) + &error)) { transport->receive_credentials_pending = FALSE; } else { - _dbus_verbose ("Failed to read credentials\n"); + _dbus_verbose ("Failed to read credentials: %s\n", error.message); + dbus_error_free (&error); do_io_error (transport); } }