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

Richard Sharpe realrichardsharpe at gmail.com
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
be NT_STATUS_INVALID_PARAMETER
]

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?)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list