Re: [Qemu-devel] [PATCH v5 1/3] osdep: Add a function to get the current username.

2013-04-04 Thread Richard W.M. Jones
On Thu, Apr 04, 2013 at 10:08:10AM +0100, Peter Maydell wrote: > On 3 April 2013 23:17, Richard W.M. Jones wrote: > > +/* > > + * Get the login name of the current user. The string must be freed > > + * up by the caller. If the current user could not be determined, > > + * returns NULL and sets

Re: [Qemu-devel] [PATCH v5 1/3] osdep: Add a function to get the current username.

2013-04-04 Thread Peter Maydell
On 3 April 2013 23:17, Richard W.M. Jones wrote: > +/* > + * Get the login name of the current user. The string must be freed > + * up by the caller. If the current user could not be determined, > + * returns NULL and sets errno. > + */ Any reason we can't just use g_get_user_name() ? -- PMM

[Qemu-devel] [PATCH v5 1/3] osdep: Add a function to get the current username.

2013-04-03 Thread Richard W.M. Jones
From: "Richard W.M. Jones" Signed-off-by: Richard W.M. Jones --- include/qemu/osdep.h | 2 ++ util/osdep.c | 49 - 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index df24400..8