You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1998/08/05 09:04:30 UTC

Re: Help with apache installation! (fwd)

Anyone confirm either way?

initgroups() man page on dgux says it returns 1 for failure, but that
makes no sense.

Is a PR on it...

---------- Forwarded message ----------
Date: Tue, 4 Aug 1998 22:16:15 -0700 (MST)
From: Jim Davis <jd...@lectura.CS.Arizona.EDU>
To: marcs@znep.com
Newsgroups: comp.infosystems.www.servers.unix
Subject: Re: Help with apache installation!

In article <6q...@scanner.worldgate.com> you write:
: > RETURN VALUES
: > 
: >   Upon successful completion, the initgroups() function returns 0 (zero). If
: >   the initgroups() function fails, 1 is returned and errno is set to indicate
: >   the error.
:
:That is very bastard and I'm not too sure what to think of it.

A little test program on a 4.0B DUX system suggests that's a typo:
initgroups(jdavis,-1) returns -1, (as does running the test program
without being root), while initgroups(jdavis,valid_group) returns 0.
The manpage on that system does say it returns 1 on error.


Re: Help with apache installation! (fwd)

Posted by Jens-Uwe Mager <ju...@helios.de>.
On Wed, Aug 05, 1998 at 12:04:30AM -0700, Marc Slemko wrote:
> Anyone confirm either way?
> 
> initgroups() man page on dgux says it returns 1 for failure, but that
> makes no sense.

I suppose this is a documentation error on his version, on my DGUX R4.11
system the man page says:

DIAGNOSTICS
    Upon successful completion, a value of 0 is returned.  Otherwise, a
    value of -1 is returned and errno is set to indicate the error.

If needed, I can post the complete page.

Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:		+49 5131 709320
FAX:		+49 5131 709325
Internet:	jum@helios.de