]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: default: Remove recursion into the VFS inside the default pread call.
authorJeremy Allison <jra@samba.org>
Mon, 30 Apr 2018 16:51:34 +0000 (09:51 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 May 2018 17:33:13 +0000 (19:33 +0200)
We already know we're at the POSIX level here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c

index 6e8a99690cff2f9733a06ce290b78462fa784ff8..56dd5c77218f6973f116436f129c56dafd6632e5 100644 (file)
@@ -636,7 +636,7 @@ static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
 
        if (result == -1 && errno == ESPIPE) {
                /* Maintain the fiction that pipes can be seeked (sought?) on. */
-               result = SMB_VFS_READ(fsp, data, n);
+               result = sys_read(fsp->fh->fd, data, n);
                fsp->fh->pos = 0;
        }