Re: [gtk-list] still a bug with getpwuid_r [was: Re: 1.1.14
- From: Trog <trog gtk org>
- To: Sebastian Wilhelmi <wilhelmi ira uka de>
- Cc: gtk-list redhat com
- Subject: Re: [gtk-list] still a bug with getpwuid_r [was: Re: 1.1.14
- Date: Tue, 02 Feb 1999 13:51:38 -0000 (GMT)
Doh! Should be fine then.
<wanders off to find a paper bag>
-tony
On 02-Feb-99 Sebastian Wilhelmi wrote:
> Hi,
>
>> Doubled by whom?
>
> By glib: here's the source:
>
> do
> {
> g_free (buffer);
> buffer = g_malloc (bufsize);
>
># ifdef HAVE_GETPWUID_R_POSIX
> error = getpwuid_r (getuid (), &pwd, buffer, bufsize,
> &pw);
> error = error < 0 ? errno : error;
># else /* !HAVE_GETPWUID_R_POSIX */
> pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
> error = pw ? 0 : errno;
># endif /* !HAVE_GETPWUID_R_POSIX */
>
> bufsize *= 2; /* here the bufzise gets doubled */
> }
> while (error == ERANGE); /* This loop us left, whenever the
> call
> to getpwuid succeded. */
>
>
>> Don't forget that we are working on multiple
>> architectures, and the Digital UNIX man page seems very specific.
>>
>> I'd rather have it suffice in all situations rather than most.
>
> I still think, it should work on DIGITAL as well.
>
> Bye,
> Sebastian
> --
> Sebastian Wilhelmi | här ovanför alla
> molnen
> mailto:wilhelmi@ira.uka.de | är himmlen så
> förunerligt blå
> http://goethe.ira.uka.de/~wilhelmi |
---
E-Mail: trog@gtk.org
If the facts don't fit the theory, change the facts.
-- Albert Einstein
Go Bezerk! http://www.gtk.org/~trog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]