Samba 3.3.6 seems to fail the smbtorture4 smb2.create leading-slash test

Richard Sharpe realrichardsharpe at
Mon Nov 5 16:12:43 MST 2012

Hi folks,

This is what we see, at least on FreeBSD:

failure: leading-slash [
(../source4/torture/smb2/create.c:1083) Incorrect status NT_STATUS_OK - should

This seems to be an overzealous interpretation of SMB2.2 Section
2.2.13 which referrs to MS-FSCC Section 2.1.5, which does say that \
is invalid as a character in a file name. However, SMB2.2 Section
2.2.13 says that the file name must be a relative path name conforming
to MS-FSCC Section 2.1.5.

What are the thoughts? If this is to correctly return
INVALID_PARAMETER, a tests will likely be needed in the SMB2 code to
filter out the case where there is a leading slash. (What about a
trailing slash?)

Richard Sharpe

More information about the samba-technical mailing list