debugging smbd
Andrew Tridgell
tridge at samba.anu.edu.au
Sat Apr 18 01:00:16 GMT 1998
> I traditionally hacked up the code where I want to break, but in a
> printf
> and a
> pause
> and then attach the debugger to it (enabling it with an environment variable).
yep, I do that a lot :-)
> Is there a better/easier way to do this?
>
> Unfortuneably, sticking this after the fork breaks smb clients, since they
> expect the protocol negotiation to happen in a few seconds (is there any
> way to tell the clients not to time out so fast?)
you just have to be quick! a smbstatus|awk command can make it fairly
fast :-)
> Since we already have the account, would it make sense to encode the
> netbios machine in the file name? (i.e. netbios name instead of user name?)
netbios names are going to go away with NT5. SMB will eventually move
to netbios-less operation. This makes me a bit loath to change
anything that doesn't currently use netbios names to use them.
Cheers, Andrew
More information about the samba-technical
mailing list