]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_aio_pthread: SMB_VFS_OPEN() is called with cwd=parent directory of the file
authorRalph Boehme <slow@samba.org>
Thu, 14 May 2020 15:00:57 +0000 (17:00 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 21 May 2020 05:23:30 +0000 (05:23 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aio_pthread.c

index 1e19e281fc9c63a51408f03b162c0b07505f3ccf..f1e857d182f2b18e7be95e40f95572a1bed536a6 100644 (file)
@@ -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);