1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-14 00:58:38 +03:00

vfs_fruit: let fruit_open_rsrc_adouble() return errno = EISDIR

That hopefully makes the check that ':AFP_Resource' can't
be created on directories.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2020-12-30 13:49:37 +01:00 committed by Ralph Boehme
parent d62c670c3d
commit 94799dc8e6

View File

@ -1461,6 +1461,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 habe a resource fork */
errno = EISDIR;
rc = -1;
goto exit;
}