From: Volker Lendecke Date: Wed, 23 Feb 2022 09:30:06 +0000 (+0000) Subject: modules: Use conn->cwd_fsp in fruit_open_rsrc_adouble() X-Git-Tag: tevent-0.12.0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef341e0f2df6bc5ae210fb597bfa4aa9c5ca2505;p=thirdparty%2Fsamba.git modules: Use conn->cwd_fsp in fruit_open_rsrc_adouble() None of the adouble infrastructure is really prepared for a dirfsp that is not conn->cwd_fsp, there are quite a few direct references to it in adouble.c. This needs conversion, but at this point we need to make fruit_openat() robust against a non-cwd_fsp dirfsp argument. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 995c869d10f..81bc0cf4cc2 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -1586,7 +1586,7 @@ static int fruit_open_rsrc_adouble(vfs_handle_struct *handle, goto exit; } - status = adouble_open_from_base_fsp(dirfsp, + status = adouble_open_from_base_fsp(fsp->conn->cwd_fsp, fsp->base_fsp, ADOUBLE_RSRC, flags,