diff options
Diffstat (limited to 'dbus/dbus-userdb.c')
-rw-r--r-- | dbus/dbus-userdb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus/dbus-userdb.c b/dbus/dbus-userdb.c index 1be3dda6..2aa395dc 100644 --- a/dbus/dbus-userdb.c +++ b/dbus/dbus-userdb.c @@ -118,11 +118,12 @@ _dbus_user_database_lookup (DBusUserDatabase *db, uid = n; } +#ifdef DBUS_ENABLE_USER_CACHE if (uid != DBUS_UID_UNSET) info = _dbus_hash_table_lookup_ulong (db->users, uid); else info = _dbus_hash_table_lookup_string (db->users_by_name, _dbus_string_get_const_data (username)); - + if (info) { _dbus_verbose ("Using cache for UID "DBUS_UID_FORMAT" information\n", @@ -130,6 +131,9 @@ _dbus_user_database_lookup (DBusUserDatabase *db, return info; } else +#else + if (1) +#endif { if (uid != DBUS_UID_UNSET) _dbus_verbose ("No cache for UID "DBUS_UID_FORMAT"\n", |