again
John E Van Deusen III
jiii at visdc.UUCP
Tue Apr 18 03:24:42 AEST 1989
In article <1051 at aplcen.apl.jhu.edu> (Ken Arromdee (600.429)) writes:
>
> I have a program which is run setuid. I want to set the uid back to
> the original before exec'ing a shell.
>--------------------------------------------------------------
> extern unsigned short getuid();
> ...
>
> setuid(getuid());
You have declared getuid() to return an unsigned short. Setuid expects
its argument to be an int. Lint(1) complains.
--
John E Van Deusen III, PO Box 9283, Boise, ID 83707, (208) 343-1865
uunet!visdc!jiii
More information about the Comp.unix.questions
mailing list