summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2018-05-02 16:38:05 -0700
committerRalph Boehme <slow@samba.org>2018-05-04 22:34:25 +0200
commit23f4b3f0ed1b5883b50b390292e06587c2a6e27b (patch)
treef11300d9ef4f8bb80d88f87c09b370733c6533bc
parent90bd74640f0a79c1d1c2c0a5fee92e62700232e9 (diff)
downloadsamba-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.c2
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 */