]> git.ipfire.org Git - thirdparty/dbus.git/commit
sysdeps: Give a more useful error if unable to resolve a numeric uid
authorSimon McVittie <smcv@collabora.com>
Thu, 29 Jun 2023 16:03:51 +0000 (17:03 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 21 Aug 2023 13:49:31 +0000 (13:49 +0000)
commit12b367daaaabab838537bfbe8164f095a6294ec3
treed30627a19953be32a1a181d0879d1da7696c4407
parent80b90e570e0cc950491aaeacb008b101922d8a57
sysdeps: Give a more useful error if unable to resolve a numeric uid

If we want to get the struct passwd corresponding to uid 42, but we
can't, it's much better to say

    User ID "42" unknown

rather than

    User "???" unknown

Helps: https://gitlab.freedesktop.org/dbus/dbus/-/issues/343
Signed-off-by: Simon McVittie <smcv@collabora.com>
dbus/dbus-sysdeps-unix.c