DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10095>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10095

Within userinfo.c, getpwnam_r does not work as expected on IRIX





------- Additional Comments From [EMAIL PROTECTED]  2002-06-21 03:25 -------
Same sort of idea.  The code that I added was specific to IRIX:

#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && 
defined(HAVE_GETPWNAM_R)
    if (!getpwnam_r(username, pw, pwbuf, PWBUF_SIZE, &pwptr)) {
        /* nothing extra to do on success */

#ifdef sgi

        /* unless it's IRIX */

        if (pwptr == NULL) {
            return errno;
        }

#endif

#else

I have always been fearful of the type of compound test that you used
ever since I ran into an overly aggressive C optimizer that believed
that the laws of logic overrode the normal expression evaluation order.

However, your fix will catch other _damaged_ libc implementations.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to