[uClibc]user and group id's

Erik Andersen andersen at codepoet.org
Sat Feb 15 09:47:33 UTC 2003


On Fri Feb 14, 2003 at 03:10:54PM -0800, David Meggy wrote:
> 
> I'm getting some very strange output from uClibc 0.9.18, that didn't
> exist on earlier versions.
> 
> The following program demonstrates this.  Note that I'm running as root,
> so I expect all outputs to be 0.
[--------snip-------]
> # gcc -Os suidtest2.c -o suidtest2
> # ./suidtest2
> suid = 0, sgid = 0, euid = 1074135040, egid = -1073807360, ruid = 0,
> rgid = -1073807360

Ugh.  Not pretty at all.  This was representitive of a whole
class of system calls that were broken.  I've fixed things
all up now, and your example now works as expected with
today's snapshot.

./setuidtest
suid = 1000, sgid = 1000, euid = 1000, egid = 1000, ruid = 1000, rgid = 1000

Thanks for the detailed bug report!

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list