diff options
| author | Pali Rohár <pali@kernel.org> | 2024-12-30 21:21:31 +0100 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-10-09 23:01:24 -0500 |
| commit | 88cae132dc0539ad188b787d32a7df4e16b5c1af (patch) | |
| tree | 3001fa5336be165f422d08b1586c36826016fb68 /fs/smb/client/smb1ops.c | |
| parent | cifs: Query EA $LXMOD in cifs_query_path_info() for WSL reparse points (diff) | |
| download | linux-88cae132dc0539ad188b787d32a7df4e16b5c1af.tar.gz linux-88cae132dc0539ad188b787d32a7df4e16b5c1af.zip | |
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>
Diffstat (limited to '')
| -rw-r--r-- | fs/smb/client/smb1ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb1ops.c b/fs/smb/client/smb1ops.c index 3fdbb71036cf..7b17668e2a54 100644 --- a/fs/smb/client/smb1ops.c +++ b/fs/smb/client/smb1ops.c @@ -1032,7 +1032,7 @@ smb_set_file_info(struct inode *inode, const char *full_path, .tcon = tcon, .cifs_sb = cifs_sb, .desired_access = SYNCHRONIZE | FILE_WRITE_ATTRIBUTES, - .create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR), + .create_options = cifs_create_options(cifs_sb, 0), .disposition = FILE_OPEN, .path = full_path, .fid = &fid, |
