diff options
author | Jeremy Allison <jra@samba.org> | 2018-04-30 09:51:34 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-05-02 19:33:13 +0200 |
commit | c68cfbcee6a19a19401893706d72994725b05ef5 (patch) | |
tree | 1e69ae846f8f5d307f1d6ce746da5fdc3f46c8a3 /source3 | |
parent | ff3a23e90f85508de39610eb3503562b76c22773 (diff) | |
download | samba-c68cfbcee6a19a19401893706d72994725b05ef5.tar.gz |
s3: VFS: default: Remove recursion into the VFS inside the default pread call.
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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 6e8a99690cf..56dd5c77218 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -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; } |