Skip to content

Commit b6d44d4

Browse files
bharathsm-mssmfrench
authored andcommitted
cifs: update desired access while requesting for directory lease
We read and cache directory contents when we get directory lease, so we should ask for read permission to read contents of directory. Signed-off-by: Bharath SM <bharathsm@microsoft.com> Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 74e0133 commit b6d44d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
218218
.tcon = tcon,
219219
.path = path,
220220
.create_options = cifs_create_options(cifs_sb, CREATE_NOT_FILE),
221-
.desired_access = FILE_READ_ATTRIBUTES,
221+
.desired_access = FILE_READ_DATA | FILE_READ_ATTRIBUTES,
222222
.disposition = FILE_OPEN,
223223
.fid = pfid,
224224
};

0 commit comments

Comments
 (0)