vfs_fruit: return ENOENT instead of EISDIR when trying to open AFP_Resource for a...
authorRalph Boehme <slow@samba.org>
Mon, 22 May 2023 17:35:33 +0000 (19:35 +0200)
committerJule Anger <janger@samba.org>
Wed, 31 May 2023 09:47:11 +0000 (09:47 +0000)
commit051cd8f5915615bed9ff8756661afffb794e42b4
treebfeebf3a9a48f5e6cd524c371545e96bfe3937b4
parent976b4955570d34b8b013a7fd17f3551fbf105f83
vfs_fruit: return ENOENT instead of EISDIR when trying to open AFP_Resource for a directory

Translates to NT_STATUS_OBJECT_NAME_NOT_FOUND which is the same error macOS
returns in this case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15378

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 9b91a8bad2ff8da9eb56f1f9d640bcea294a5a0a)
source3/modules/vfs_fruit.c