Skip to content
  • Simon McVittie's avatar
    userdb: Add proper error reporting when getting groups from a uid · 980e5289
    Simon McVittie authored
    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: #343
    
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    980e5289