mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-07 19:35:50 +01:00
Fixed yet another bloody implementation of getpwuid_r. This time for AIX.
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gutils.c (g_get_any_init): Fixed yet another bloody implementation of getpwuid_r. This time for AIX. Thanks to Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure test better than that, but have no idea, how to do that easily.
This commit is contained in:
parent
9816c0fa17
commit
1ed6997670
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gutils.c (g_get_any_init): Fixed yet another bloody
|
||||||
|
implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
|
||||||
|
<olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
|
||||||
|
test better than that, but have no idea, how to do that easily.
|
||||||
|
|
||||||
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
|
||||||
|
@ -462,11 +462,16 @@ g_get_any_init (void)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
# ifdef HAVE_GETPWUID_R_POSIX
|
# ifdef HAVE_GETPWUID_R_POSIX
|
||||||
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
|
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
|
||||||
error = error < 0 ? errno : error;
|
error = error < 0 ? errno : error;
|
||||||
# else /* !HAVE_GETPWUID_R_POSIX */
|
# else /* !HAVE_GETPWUID_R_POSIX */
|
||||||
|
# ifdef _AIX
|
||||||
|
error = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
||||||
|
pw = error == 0 ? &pwd : NULL;
|
||||||
|
# else /* !_AIX */
|
||||||
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
||||||
error = pw ? 0 : errno;
|
error = pw ? 0 : errno;
|
||||||
|
# endif /* !_AIX */
|
||||||
# endif /* !HAVE_GETPWUID_R_POSIX */
|
# endif /* !HAVE_GETPWUID_R_POSIX */
|
||||||
|
|
||||||
if (!pw)
|
if (!pw)
|
||||||
|
7
gutils.c
7
gutils.c
@ -462,11 +462,16 @@ g_get_any_init (void)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
# ifdef HAVE_GETPWUID_R_POSIX
|
# ifdef HAVE_GETPWUID_R_POSIX
|
||||||
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
|
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
|
||||||
error = error < 0 ? errno : error;
|
error = error < 0 ? errno : error;
|
||||||
# else /* !HAVE_GETPWUID_R_POSIX */
|
# else /* !HAVE_GETPWUID_R_POSIX */
|
||||||
|
# ifdef _AIX
|
||||||
|
error = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
||||||
|
pw = error == 0 ? &pwd : NULL;
|
||||||
|
# else /* !_AIX */
|
||||||
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
|
||||||
error = pw ? 0 : errno;
|
error = pw ? 0 : errno;
|
||||||
|
# endif /* !_AIX */
|
||||||
# endif /* !HAVE_GETPWUID_R_POSIX */
|
# endif /* !HAVE_GETPWUID_R_POSIX */
|
||||||
|
|
||||||
if (!pw)
|
if (!pw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user