]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerJeremy Allison <jra@samba.org>
Thu, 25 May 2023 23:59:33 +0000 (23:59 +0000)
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>
source3/modules/vfs_fruit.c

index 637e2a1a6ed5414a36fb406c242055448f71b442..59c48b6419f63252d8170591ac766c8b7f3cdcfe 100644 (file)
@@ -1567,7 +1567,7 @@ static int fruit_open_rsrc_adouble(vfs_handle_struct *handle,
            S_ISDIR(fsp->base_fsp->fsp_name->st.st_ex_mode))
        {
                /* sorry, but directories don't have a resource fork */
-               errno = EISDIR;
+               errno = ENOENT;
                rc = -1;
                goto exit;
        }