]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: clear RENAME_NOREPLACE before calling vfs_rename
authorMarios Makassikis <mmakassikis@freebox.fr>
Mon, 15 Apr 2024 13:12:48 +0000 (15:12 +0200)
committerSteve French <stfrench@microsoft.com>
Sat, 20 Apr 2024 01:48:47 +0000 (20:48 -0500)
commit4973b04d3ea577db80c501c5f14e68ec69fe1794
tree02abb20159bc53dfd75ed0d26edcd71ac95c0a19
parent17cf0c2794bdb6f39671265aa18aea5c22ee8c4a
ksmbd: clear RENAME_NOREPLACE before calling vfs_rename

File overwrite case is explicitly handled, so it is not necessary to
pass RENAME_NOREPLACE to vfs_rename.

Clearing the flag fixes rename operations when the share is a ntfs-3g
mount. The latter uses an older version of fuse with no support for
flags in the ->rename op.

Cc: stable@vger.kernel.org
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/vfs.c