dbus/test/internals
Simon McVittie 980e52898b userdb: Add proper error reporting when getting groups from a uid
Previously, if dbus_connection_get_unix_user() succeeded but
_dbus_unix_groups_from_uid() failed, then bus_connection_get_unix_groups()
would incorrectly fail without setting the error indicator, resulting
in "(null)" being logged, which is rather unhelpful.

This also lets us distinguish between ENOMEM and other errors, such as
the uid not existing in the system's user database.

Fixes: 145fb99b (untitled refactoring commit, 2006-12-12)
Helps: https://gitlab.freedesktop.org/dbus/dbus/-/issues/343
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-18 16:04:03 +01:00
..
address.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
assertions.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
atomic.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
counter.c Add multithreaded unit test for DBusCounter to available build systems 2023-01-05 16:43:55 +01:00
dbus-auth-script.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-auth-script.h Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-auth-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-credentials-util.c DBusCredentials: add support for PID FDs via SO_PEERPIDFD 2023-08-08 12:24:20 +01:00
dbus-marshal-byteswap-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-marshal-recursive-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-marshal-recursive-util.h Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-marshal-validate-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-message-factory.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-message-factory.h Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-message-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-message-util.h Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-string-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
dbus-sysdeps-util.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
desktop-file.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
hash.c dbus-hash: Add (AFL-2.1 OR GPL-2.0-or-later) AND TCL SPDX license identifier 2022-11-29 13:33:53 +00:00
marshal-recursive.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
mempool.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
message-internals.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
misc-internals.c userdb: Add proper error reporting when getting groups from a uid 2023-08-18 16:04:03 +01:00
misc-internals.h Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
printf.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
refs.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
server-oom.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
sha.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
spawn-oom.c Add SPDX license marker for the AFL-2.1 OR GPL-2.0-or-later license 2023-01-04 07:53:44 +00:00
strings.c Add test for _dbus_string_skip_blank() 2023-02-08 12:03:19 +00:00
sysdeps.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
syslog.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
variant.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00