From 23f4b3f0ed1b5883b50b390292e06587c2a6e27b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 2 May 2018 16:38:05 -0700 Subject: [PATCH] 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 Reviewed-by: Ralph Boehme --- source3/modules/vfs_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.2