Smbmount broken?

Jeremy Allison jra at samba.org
Tue Dec 18 19:15:20 GMT 2001


On Mon, Dec 17, 2001 at 11:09:04PM +0100, Urban Widmark wrote:
> On Sun, 16 Dec 2001, Vance Lankhaar wrote:
> 
> > So, I decided to try out 3.0alpha8. It appears that smbmount is broken. :(
> > When I mount a share, it appears to mount properly, but when I try to 
> > list the files in that directory, nothing appears. When I run mount without 
> > args, it says that it is mounted. Oh yeah - smbmount works as expected in 
> > 2.2.2, but not HEAD/3.0alpha8.
> 
> Someone was a bit too good at removing things when cleaning up some newly
> created double-free's. There needs to be a 'c = NULL' for a loop not to be
> skipped, causing smbfs to complain and that in turn makes smbmount unmount
> the fs.
> 
> If you had looked at /proc/mounts instead of /etc/mtab (through 'mount')
> you would have seen that smbfs was not actually mounted.
> 
> Patch at the end of this email. Let me know if it works so I can get it
> added.
> 
> Note that the current HEAD version of the smbd server is being nasty. I
> negotiate non-unicode but it still sends unicode replies (verified through
> tcpdump). So it won't work to run smbfs vs such a server.
> 
> After fixing this I am unable to repeat the disappearing directory
> problem (never tested before). But I don't think I fixed anything related
> to that.

Applied to HEAD and 2.2 CVS thanks. BTW: Are you sure the removal
of the getenv ASCII code is correct ?

Jeremy.




More information about the samba-technical mailing list