summaryrefslogtreecommitdiff
path: root/bus/driver.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2019-04-17 14:22:15 +0100
committerSimon McVittie <smcv@collabora.com>2019-04-17 14:22:15 +0100
commit9e0fd2fbbfd1a86f9c6cf6d909054b806aabde36 (patch)
treedfdbb22c39bc33aad88d9814f73d2194b99b7c65 /bus/driver.c
parent301db925765e4d95a1876c1fec5c028c5bcd8fe5 (diff)
downloaddbus-9e0fd2fbbfd1a86f9c6cf6d909054b806aabde36.tar.gz
bus_driver_credentials_fill_unix_gids: Comment on a non-error
As described in the spec, we want GetConnectionCredentials() to report less information, successfully, if it sees a group ID that it can't represent. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'bus/driver.c')
-rw-r--r--bus/driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bus/driver.c b/bus/driver.c
index 6714fe06..3898cfd6 100644
--- a/bus/driver.c
+++ b/bus/driver.c
@@ -1939,6 +1939,9 @@ bus_driver_credentials_fill_unix_gids (DBusCredentials *credentials,
{
if (gids[i] > _DBUS_UINT32_MAX)
{
+ /* At least one gid is unrepresentable, so behave as though
+ * we didn't know the group IDs at all (not an error, just
+ * success with less information) */
dbus_free (gids_u32);
return TRUE;
}