]> Gentwo Git Trees - linux/.git/commit
cifs: Allow fallback code in smb_set_file_info() also for directories
authorPali Rohár <pali@kernel.org>
Mon, 30 Dec 2024 20:21:31 +0000 (21:21 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 10 Oct 2025 04:01:24 +0000 (23:01 -0500)
commit88cae132dc0539ad188b787d32a7df4e16b5c1af
tree3001fa5336be165f422d08b1586c36826016fb68
parent057ac50638bcece64b3b436d3a61b70ed6c01a34
cifs: Allow fallback code in smb_set_file_info() also for directories

On NT systems, it is possible to do SMB open call also for directories.
Open argument CREATE_NOT_DIR disallows opening directories. So in fallback
code path in smb_set_file_info() remove CREATE_NOT_DIR restriction to allow
it also for directories.

Similar fallback is implemented also in CIFSSMBSetPathInfoFB() function and
this function already allows to call operation for directories.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1ops.c