From 63cc3f3cfb1ef2e4447ef962fd028ee58a8ec1c8 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sat, 23 Jan 1999 02:16:11 +0000 Subject: cleaned up the errno mess for GETPWUID. we especially don't want to Sat Jan 23 02:14:28 1999 Tim Janik * gutils.c (g_get_any_init): cleaned up the errno mess for GETPWUID. we especially don't want to g_error() out here! the warning for G_THREADS_ENABLED and !HAVE_GETPWUID_R isn't gcc related. if !HAVE_PWD_H and !NATIVE_WIN32, g_free the home dir before resetting it to NULL, why are we doing this anyways? reordered code a bit so we always provide defaults (except for g_home_dir). --- testglib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testglib.c') diff --git a/testglib.c b/testglib.c index 9601f412a..3d63ebbcb 100644 --- a/testglib.c +++ b/testglib.c @@ -341,6 +341,10 @@ main (int argc, string = g_get_current_dir (); g_print ("cwd: %s\n", string); g_free (string); + g_print ("user: %s\n", g_get_user_name ()); + g_print ("real: %s\n", g_get_real_name ()); + g_print ("home: %s\n", g_get_home_dir ()); + g_print ("tmp-dir: %s\n", g_get_tmp_dir ()); /* type sizes */ g_print ("checking size of gint8: %d", (int)sizeof (gint8)); -- cgit v1.2.3