Skip to content

Commit 88cae13

Browse files
palismfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 057ac50 commit 88cae13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb1ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ smb_set_file_info(struct inode *inode, const char *full_path,
10321032
.tcon = tcon,
10331033
.cifs_sb = cifs_sb,
10341034
.desired_access = SYNCHRONIZE | FILE_WRITE_ATTRIBUTES,
1035-
.create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR),
1035+
.create_options = cifs_create_options(cifs_sb, 0),
10361036
.disposition = FILE_OPEN,
10371037
.path = full_path,
10381038
.fid = &fid,

0 commit comments

Comments
 (0)