diff options
author | Pali Rohár <pali@kernel.org> | 2024-12-22 17:58:21 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-04-01 04:58:09 -0500 |
commit | e97aec7889543663202e24ec51e1e2f9cb236472 (patch) | |
tree | e884da962f646c78db28dd1b07c2fc961db2577e /net/lapb/lapb_timer.c | |
parent | b07687edee99b9e53465fbd7f24406616f67070e (diff) | |
download | linux-e97aec7889543663202e24ec51e1e2f9cb236472.tar.gz linux-e97aec7889543663202e24ec51e1e2f9cb236472.tar.bz2 linux-e97aec7889543663202e24ec51e1e2f9cb236472.zip |
cifs: Do not add FILE_READ_ATTRIBUTES when using GENERIC_READ/EXECUTE/ALL
Individual bits GENERIC_READ, GENERIC_EXECUTE and GENERIC_ALL have meaning
which includes also access right for FILE_READ_ATTRIBUTES. So specifying
FILE_READ_ATTRIBUTES bit together with one of those GENERIC (except
GENERIC_WRITE) does not do anything.
This change prevents calling additional (fallback) code and sending more
requests without FILE_READ_ATTRIBUTES when the primary request fails on
-EACCES, as it is not needed at all.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions