2003-04-25 Havoc Pennington <hp@redhat.com>

* dbus/dbus-transport.c (_dbus_transport_get_unix_user): fix bug
	where we used >= 0 instead of != DBUS_UID_UNSET.
This commit is contained in:
Havoc Pennington 2003-04-25 20:48:45 +00:00
parent 9c010fbc04
commit 4b87aa40df
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-04-25 Havoc Pennington <hp@redhat.com>
* dbus/dbus-transport.c (_dbus_transport_get_unix_user): fix bug
where we used >= 0 instead of != DBUS_UID_UNSET.
2003-04-25 Havoc Pennington <hp@redhat.com>
* glib/dbus-gmain.c (remove_watch): fix for a crash when watches

View file

@ -932,7 +932,7 @@ _dbus_transport_get_unix_user (DBusTransport *transport,
_dbus_auth_get_identity (transport->auth, &auth_identity);
if (auth_identity.uid >= 0)
if (auth_identity.uid != DBUS_UID_UNSET)
{
*uid = auth_identity.uid;
return TRUE;