linux-stable/fs/smb
Marios Makassikis 4687606d94 ksmbd: clear RENAME_NOREPLACE before calling vfs_rename
commit 4973b04d3e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-27 17:07:18 +02:00
..
client smb3: fix Open files on server counter going negative 2024-04-17 11:18:22 +02:00
common smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
server ksmbd: clear RENAME_NOREPLACE before calling vfs_rename 2024-04-27 17:07:18 +02:00
Kconfig
Makefile