From: Ralph Boehme Date: Thu, 14 May 2020 15:00:57 +0000 (+0200) Subject: vfs_aio_pthread: SMB_VFS_OPEN() is called with cwd=parent directory of the file X-Git-Tag: ldb-2.2.0~438 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a30825f29ee32050b2506aa0b071c5446412ddc0;p=thirdparty%2Fsamba.git vfs_aio_pthread: SMB_VFS_OPEN() is called with cwd=parent directory of the file Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index 1e19e281fc9..f1e857d182f 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -301,9 +301,9 @@ static struct aio_open_private_data *create_private_open_data(TALLOC_CTX *ctx, } #if defined(O_DIRECTORY) - opd->dir_fd = open(opd->dname->base_name, O_RDONLY|O_DIRECTORY); + opd->dir_fd = open(".", O_RDONLY|O_DIRECTORY); #else - opd->dir_fd = open(opd->dname->base_name, O_RDONLY); + opd->dir_fd = open(".", O_RDONLY); #endif if (opd->dir_fd == -1) { opd_free(opd);