diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 04:53:48 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 04:53:48 +0000 |
commit | e18151212d3326dbf04797c6d5300fb1211ee875 (patch) | |
tree | 1ca56d6a4227efdb653cc8e2b2cbedbbc8de3d88 /sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c | |
parent | Add bsdav 1.3, BSD native set of programs for audio and video reading (diff) |
Presenting GNOME 2.12 for FreeBSD. The release is chock full of bug fixes
and new features. Don't believe me? Then see for yourself at
http://www.gnome.org/start/2.12/notes/en/.
DO NOT USE portupgrade by itself to upgrade to GNOME 2.12. Instead, use
the gnome_upgrade.sh script from
http://www.marcuscom.com/downloads/gnome_upgrade212.sh. This script will
circumvent some potential pitfalls users can see if they use portupgrade
by itself.
In keeping with tradition, GNOME 2.12 for FreeBSD comes with a special
splash screen. The winner of this release's contest is
Dominique Goncalves <dominique.goncalves@gmail.com>. His splash screen
was inspired by http://art.gnome.org/contests/2.12-splash/83.
The FreeBSD GNOME Team would lank to thank the following users for
their contributions to this release:
Matthew Luckie <mjl@luckie.org.nz>
ade
sajd on #freebsd-gnome
Caelian on #freebsd-gnome
mnag
Yasuda Keisuke <kysd@po.harenet.ne.jp>
Mark Hobden <markhobden@gmail.com>
Sergey Akifyev <asa@agava.com>
Andreas Kohn
For more information on GNOME on FreeBSD, checkout
http://www.FreeBSD.org/gnome/. The 2.12 documentation will be
posted shortly.
Diffstat (limited to 'sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c')
-rw-r--r-- | sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c b/sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c new file mode 100644 index 000000000000..0d1f85f32c7f --- /dev/null +++ b/sysutils/gnomecontrolcenter2/files/patch-capplets_about-me_gnome-about-me.c @@ -0,0 +1,34 @@ +--- capplets/about-me/gnome-about-me.c.orig Wed Jul 27 13:45:17 2005 ++++ capplets/about-me/gnome-about-me.c Wed Jul 27 13:47:09 2005 +@@ -258,12 +258,10 @@ + static char * + get_user_login (void) + { +- char buf[LINE_MAX * 4]; +- struct passwd pwd, *err; ++ struct passwd *pwd; + +- int i; +- i = getpwuid_r(getuid(), &pwd, buf, sizeof(buf), &err); +- return ((i == 0) && (err == &pwd)) ? g_strdup(pwd.pw_name) : NULL; ++ pwd = getpwuid(getuid()); ++ return (pwd != NULL) ? g_strdup(pwd->pw_name) : NULL; + } + + /* +@@ -664,6 +662,7 @@ + struct passwd *pwent; + char *user = NULL; + gchar *str; ++ gchar **tok; + + me = g_new0 (GnomeAboutMe, 1); + +@@ -733,7 +732,6 @@ + _("Unknown login ID, the user database might be corrupted")); + return ; + } +- gchar **tok; + tok = g_strsplit (pwent->pw_gecos, ",", 0); + + /************************************************/ |