SV: SIGBUS Panic in smbd

Michael Stockman pgmtekn at algonet.se
Tue Jun 29 18:41:25 GMT 1999


Hello,

Yes! That is the way to go! Then we have our own struct that we can do
anything we like with.

It appears as passdb/check_pass.c will need to be corrected too (in
the 2.0 branch), the code was moved from there to _Get_Pwnam in the
head branch (that also needs fixing).

> Michael Stockman wrote:
> >
> > This would be an almost good approach, but quite unmanagable I
think
> > (for the same reason I think that getpwnam and getpwanam deals in
> > static memory, it is virtually impossible to know when to
free/reset
> > the pointers unless you make a function for that which must be
called
> > when we're done with the struct).
>
> Actually I have a simpler plan I'll implement. I will
> create a static struct passwd whose contents I control
> via the Get_Pass() function. This will point to Samba
> controlled memory and will be totally managed by Samba
> - the system function info will be copied into it.
>
> This should fix the problem permanently.

Best regards
  Michael Stockman
  pgmtekn-micke at algonet.se





More information about the samba-technical mailing list