projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Port to BeOS by myself and Richard Offer.
[platform/upstream/glib.git]
/
glib
/
gutils.c
diff --git
a/glib/gutils.c
b/glib/gutils.c
index
4d90a66
..
fd468f7
100644
(file)
--- a/
glib/gutils.c
+++ b/
glib/gutils.c
@@
-504,7
+504,11
@@
g_get_any_init (void)
if (pw)
{
g_user_name = g_strdup (pw->pw_name);
+#ifdef HAVE_PW_GECOS
g_real_name = g_strdup (pw->pw_gecos);
+#else
+ g_real_name = g_strdup (g_user_name);
+#endif
if (!g_home_dir)
g_home_dir = g_strdup (pw->pw_dir);
}