]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[CIFS] Do not set DFS flag on SMB2 open
authorSteve French <smfrench@gmail.com>
Thu, 27 Jun 2013 00:14:55 +0000 (19:14 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 27 Jun 2013 00:14:55 +0000 (19:14 -0500)
commitf87ab88b4065a9ef00620224c4fafadc201a430c
treeb36ffae887d6dce6a75d185b71d2bef12f5a802f
parent84ceeb9626655ce7c2745f724571ca8008b4695e
[CIFS] Do not set DFS flag on SMB2 open

If we would set SMB2_FLAGS_DFS_OPERATIONS on open we also would have
to pass the path on the Open SMB prefixed by \\server\share.
Not sure when we would need to do the augmented path (if ever) and
setting this flag breaks the SMB2 open operation since it is
illegal to send an empty path name (without \\server\share prefix)
when the DFS flag is set in the SMB open header. We could
consider setting the flag on all operations other than open
but it is safer to net set it for now.

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c