[PATCH] Fix for bug 11522: smbd can't create or open a stream name on the root directory of a share.
jra at samba.org
Thu Sep 17 17:10:12 UTC 2015
On Thu, Sep 17, 2015 at 02:06:26PM +0200, Ralph Böhme wrote:
> On Thu, Sep 17, 2015 at 06:47:28AM +0200, Ralph Böhme wrote:
> > On Wed, Sep 16, 2015 at 04:20:09PM -0700, Jeremy Allison wrote:
> > > An interesting log from an OEM lead me to look
> > > into what happens when a client tries to create
> > > a file named :streamname (no path, just stream :-).
> > >
> > > On Windows this creates :streamname on the top
> > > level directory of the share. For Samba, we
> > > return NT_STATUS_OBJECT_NAME_NOT_FOUND :-(.
> > >
> > > Fix attached (OK the first patch is a code
> > > cleanup I noticed along the way). Includes
> > > a regression test which we now pass !
> > >
> > > Review + push appreciated.
> > rb by me & will push.
> autobuild keeps failing in
> [306(1259)/1872 at 28m49s] samba3.base.dir2(nt4_dc)
> smbtorture 4.4.0pre1-DEVELOPERBUILD
> Using seed 1442476151
> Creating 1000 files
> num_seen = 2002
> num_seen = 1002
> num_seen = 1001
> (../source4/torture/basic/dir.c:148) entry count mismatch, should be 1000, was 1001
> UNEXPECTED(error): samba3.base.dir2.dir2(nt4_dc)
> A local make test works ok though.
Hmmm. Took a look - this is doing an old SMB1
SMBsearch call. This can't *possibly* interact
with the patch (famous last words :-).
I'll take a closer look !
More information about the samba-technical