]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_fruit: Don't expect a pathref fsp in unlinkat
authorVolker Lendecke <vl@samba.org>
Fri, 3 Jan 2025 11:33:43 +0000 (12:33 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Jan 2025 23:08:38 +0000 (23:08 +0000)
commit1e490886d8ec99d6d15918f80fbf56f462214342
tree5b57b1e363bd40eb68ef8db3d800f4fa8eb4d7e8
parent4cb01e556ddbcf5eb4c8aa333f711d1b7d276025
vfs_fruit: Don't expect a pathref fsp in unlinkat

The unix syscall unlinkat does not expect a file descriptor for the
to-be-removed object. SMB_VFS_UNLINKAT should also not expect
that. Put the special case into vfs_fruit.

This is required to simplify delete_all_streams next, which should not
have to do an openat_pathref_fsp() on all streams just for the
vfs_fruit case.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c