summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-12-02 17:46:30 -0800
committerJeremy Allison <jra@samba.org>2010-12-03 02:55:05 +0100
commit24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d (patch)
treee6f52a72f98264cf2b94e69bfef020420363a9c7
parentb8d7de319980f9efade92dd0721ed02efcb7e48d (diff)
downloadsamba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.tar.gz
samba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.tar.bz2
samba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.zip
posix_fallocate() returns an errno, not -1 on error.
-rw-r--r--source3/modules/vfs_streams_xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index 8870c6e471..819f33d36e 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. */