"Jacques A. Vidrine" wrote:
> > Apparently, there was a bug fixed in 4.7 -> 5.0, where the
> > effective UID was being tested instead of the real UID.
> >
> > This is probably something that someone should MFC.
> 
> Really?  I just took a quick look at this, but I have to shove off
> for now.  In initial tests, I get the different results depending on
> whether I'm using static or dynamic linking.  But maybe it's me, I'll
> look more carefully later.
> 
> How about pointing out the bug you found?

Hand me the pointy hat.  The "bug" was that my test program
seperated the operation into a function so I could try different
crap, and adding the setuid(geteuid()) put a zero on the stack
in the stack position Mike discovered was being used uninitialized.

Really bizarre.  Shouldn't compiling that stdio code have cause a
warning?!?  Is optimization disabled for the stdio code?!?

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to