diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-10-20 12:12:51 +0400 |
---|---|---|
committer | Michael Roth <michael.roth@amd.com> | 2020-11-02 19:52:08 -0600 |
commit | 6d593ab451c490b0ca941c6a519894231634751e (patch) | |
tree | 10c16308c6f477e331ed54c2c42900154003ab2e /qga/qapi-schema.json | |
parent | c67d2efd9d1771fd886e3b58771adaa62897f3d9 (diff) |
glib-compat: add g_unix_get_passwd_entry_qemu()
The glib function was introduced in 2.64. It's a safer version of
getpwnam, and also simpler to use than getpwnam_r.
Currently, it's only use by the next patch in qemu-ga, which doesn't
(well well...) need the thread safety guarantees. Since the fallback
version is still unsafe, I would rather keep the _qemu postfix, to make
sure it's not being misused by mistake. When/if necessary, we can
implement a safer fallback and drop the _qemu suffix.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
*fix checkpatch warnings about newlines before/after block comments
Signed-off-by: Michael Roth <michael.roth@amd.com>
Diffstat (limited to 'qga/qapi-schema.json')
0 files changed, 0 insertions, 0 deletions