1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

vfs_fruit: make use of vfs_fake_fd_close()

When we used vfs_fake_fd() we should use vfs_fake_fd_close()
in order to have things symetric.

That may allows us to change vfs_fake_fd() internally if required.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2020-12-18 14:36:00 +01:00 committed by Jeremy Allison
parent 8f05733346
commit 719c83b4dc

View File

@ -1676,7 +1676,7 @@ static int fruit_close_meta(vfs_handle_struct *handle,
break;
case FRUIT_META_NETATALK:
ret = close(fsp_get_pathref_fd(fsp));
ret = vfs_fake_fd_close(fsp_get_pathref_fd(fsp));
fsp_set_fd(fsp, -1);
break;
@ -1705,7 +1705,7 @@ static int fruit_close_rsrc(vfs_handle_struct *handle,
break;
case FRUIT_RSRC_XATTR:
ret = close(fsp_get_pathref_fd(fsp));
ret = vfs_fake_fd_close(fsp_get_pathref_fd(fsp));
fsp_set_fd(fsp, -1);
break;