diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-09-06 16:01:24 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-09-08 11:30:27 -0300 |
| commit | 6bd360447941357e959414a525aa62576a448116 (patch) | |
| tree | 94b3bd9a88ff52ece510309af4641b0380acf5af /scripts/basic/split-include.c | |
| parent | 65d5dbdc089be42fc48a6f77bc6b648307f34b17 (diff) | |
| download | linux-6bd360447941357e959414a525aa62576a448116.tar.gz linux-6bd360447941357e959414a525aa62576a448116.zip | |
smb: client: fix file type corruption in cifs_reparse_point_to_fattr()
Setting the file type in cf_mode without clearing the existing S_IFMT
bits first is wrong as it corrupts the file type when cf_mode already
has type bits set (e.g. S_IFREG | S_IFLNK == S_IFDIR | S_IFREG).
Clear S_IFMT before setting S_IFLNK for native and SMB1 symlinks.
Closes: https://sashiko.dev/#/patchset/20260906181540.647469-1-pc%40manguebit.org
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Bharath SM <bharathsm@microsoft.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
