Re: debugging smbd

Andrew Tridgell (tridge@samba.anu.edu.au)
Sat, 18 Apr 1998 11:00:16 +1000

From:	Andrew Tridgell <tridge@samba.anu.edu.au>
To:	leisner@sdsp.mc.xerox.com
Subject: Re: debugging smbd
Message-Id: <19980418010025Z12612527-456+7787@samba.anu.edu.au>
Date:	Sat, 18 Apr 1998 11:00:16 +1000

> 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