Great Circle Associates Majordomo-Workers
(June 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: wrapper bug in 1.93 (was: Same errors even using POSIX settings)
From: Cameron Simpson <cameron @ research . canon . com . au>
Organization: Canon Information Systems Research Australia, Sydney, Oz
Date: Fri, 7 Jun 1996 11:03:41 +1000
To: majordomo-users @ GreatCircle . COM
Cc: majordomo-workers @ GreatCircle . COM
References: <Pine.GSO.3.93.960606065819.5155A-100000@colcig1000>
Reply-to: cameron @ research . canon . com . au

"P. Alejandro Lopez-Valencia-Asesor" <palopez@colciencias.gov.co> writes:
| > I recompiled the Makefile the folowing POSIX-compliant settings for an IRIX
| > system:
[...]
| > Now I get this compiling error using gcc and cc:
| > wrapper.c: In function `main':
| > wrapper.c:100: warning: initialization makes integer from pointer without a
| > cast

This error is unrelated to the setting, except that it's in a part of the
code only compiled for POSIX.

This line:

    char setgroups_used = "setgroups_was_included"; /* give strings a hint */

needs an asterisk or some brackets:

    char setgroups_used[] = "setgroups_was_included"; /* give strings a hint */

Indeed, those three lines are slightly skew:
    if (geteuid() == 0) { /* Should I exit if this test fails? */
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- YES!
    char setgroups_used = "setgroups_was_included"; /* give strings a hint */
		       ^-- need [] here
    int groups[] =  { POSIX_GID, 0 };
			       ^^^-- get rid of the zero
				     you _only_ want POSIX_GID


Cheers,
	- Cameron Simpson
	  cameron@research.canon.com.au, DoD#743
	  http://www.dap.csiro.au/~cameron/
--
BROCCOLI!! THE ONLY VEGETABLE THAT SOUNDS LIKE AN ADVERB!!
	- ken@aiai.ed.ac.uk (Ken Johnson)

Indexed By Date Previous: Re: Infinite loop?
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: wrapper bug in 1.93 (was: Same errors even using POSIX settings)
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: Infinite loop?
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: wrapper bug in 1.93 (was: Same errors even using POSIX settings)
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com