ksmbd: allow write with FILE_APPEND_DATA
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 3 Sep 2024 11:26:33 +0000 (20:26 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 14 Sep 2024 05:03:14 +0000 (00:03 -0500)
commit2fb9b5dc80cabcee636a6ccd020740dd925b4580
tree0a146df4cb0ebf2f0c386e554d1b60a36e65bc7c
parentda3ea35007d0af457a0afc87e84fddaebc4e0b63
ksmbd: allow write with FILE_APPEND_DATA

Windows client write with FILE_APPEND_DATA when using git.
ksmbd should allow write it with this flags.

Z:\test>git commit -m "test"
fatal: cannot update the ref 'HEAD': unable to append to
 '.git/logs/HEAD': Bad file descriptor

Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org # v5.15+
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs.c