Skip to content

Commit b6d44d4

Browse files
bharathsm-msSteve French
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 <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]>
1 parent 74e0133 commit b6d44d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)