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 /qobject/json-streamer.c | |
parent | c67d2efd9d1771fd886e3b58771adaa62897f3d9 (diff) | |
download | qemu-6d593ab451c490b0ca941c6a519894231634751e.zip qemu-6d593ab451c490b0ca941c6a519894231634751e.tar.gz qemu-6d593ab451c490b0ca941c6a519894231634751e.tar.bz2 |
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 'qobject/json-streamer.c')
0 files changed, 0 insertions, 0 deletions