[Bug 216358] Re: Samba crashes repeatedly to assert_uid

Steve Langasek steve.langasek at canonical.com
Sat Mar 14 06:32:35 GMT 2009


On Sat, Mar 14, 2009 at 02:39:53AM -0000, Paul Dufresne wrote:
> I now tend to think this is caused by the -1 not being casted to appropriate type in:
> setresgid(-1,gid,-1);
> and in:
> assert_uid(-1, uid);
> in lib/sec_util.c as I said in bug #314657 causing problems on 64 bits
> machines.

Absolutely not.  You don't have to cast integer types when passing them as
function arguments, you just have to have a proper function prototype -
which Samba has for all functions it uses.  This can be confirmed by
grepping for warnings in the build logs.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org

-- 
Samba crashes repeatedly to assert_uid
https://bugs.launchpad.net/bugs/216358
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list