]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
modules: Use conn->cwd_fsp in fruit_open_rsrc_adouble()
authorVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2022 09:30:06 +0000 (09:30 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 16:33:28 +0000 (16:33 +0000)
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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index 995c869d10fe3ebf6f9bb79d79f931fcf4c3a000..81bc0cf4cc2c56809c93588a5ccc1dbe7e502843 100644 (file)
@@ -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,