diff options
author | Jeremy Allison <jra@samba.org> | 2018-05-02 16:38:05 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-05-04 22:34:25 +0200 |
commit | 23f4b3f0ed1b5883b50b390292e06587c2a6e27b (patch) | |
tree | f11300d9ef4f8bb80d88f87c09b370733c6533bc | |
parent | 90bd74640f0a79c1d1c2c0a5fee92e62700232e9 (diff) | |
download | samba-23f4b3f0ed1b5883b50b390292e06587c2a6e27b.tar.gz |
s3: VFS: default: Remove recursion into the VFS inside the default pwrite 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>
-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 63252ea865b..0fa9b78b46e 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -660,7 +660,7 @@ static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, cons if (result == -1 && errno == ESPIPE) { /* Maintain the fiction that pipes can be sought on. */ - result = SMB_VFS_WRITE(fsp, data, n); + result = sys_write(fsp->fh->fd, data, n); } #else /* HAVE_PWRITE */ |