From 24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 2 Dec 2010 17:46:30 -0800 Subject: [PATCH] posix_fallocate() returns an errno, not -1 on error. --- source3/modules/vfs_streams_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 8870c6e47101..819f33d36eb5 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -1040,7 +1040,7 @@ static int streams_xattr_posix_fallocate(struct vfs_handle_struct *handle, } if (!streams_xattr_recheck(sio)) { - return -1; + return errno; } /* Let the pwrite code path handle it. */ -- 2.34.1