Skip to content

Commit 2fb9b5d

Browse files
namjaejeonsmfrench
authored andcommitted
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: 0626e66 ("cifsd: add server handler for central processing and tranport layers") Cc: [email protected] # v5.15+ Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent da3ea35 commit 2fb9b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/server/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp,
496496
int err = 0;
497497

498498
if (work->conn->connection_type) {
499-
if (!(fp->daccess & FILE_WRITE_DATA_LE)) {
499+
if (!(fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE))) {
500500
pr_err("no right to write(%pD)\n", fp->filp);
501501
err = -EACCES;
502502
goto out;

0 commit comments

Comments
 (0)