From: Jeremy Allison Date: Wed, 2 May 2018 23:38:05 +0000 (-0700) Subject: s3: VFS: default: Remove recursion into the VFS inside the default pwrite call. X-Git-Tag: ldb-1.4.0~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f4b3f0ed1b5883b50b390292e06587c2a6e27b;p=thirdparty%2Fsamba.git 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 --- 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 */