diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-02 17:46:30 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-03 02:55:05 +0100 |
commit | 24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d (patch) | |
tree | e6f52a72f98264cf2b94e69bfef020420363a9c7 /source3 | |
parent | b8d7de319980f9efade92dd0721ed02efcb7e48d (diff) | |
download | samba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.tar.gz samba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.tar.bz2 samba-24ca7bcb604a1a5de6a074fd3ad1dfab4e58b34d.zip |
posix_fallocate() returns an errno, not -1 on error.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_streams_xattr.c | 2 |
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. */ |