diff options
author | Jeremy Allison <jra@samba.org> | 2014-12-05 15:31:19 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-08 00:33:06 +0100 |
commit | c9235deee0fc49c99cfaf2329b7af526d9dd12d0 (patch) | |
tree | 269690da195da56e45a58369d5dede6c492ee39a /source4/ldap_server/ldap_backend.c | |
parent | e60433efa182484c9fd480d831a21970775e0c99 (diff) | |
download | samba-c9235deee0fc49c99cfaf2329b7af526d9dd12d0.tar.gz samba-c9235deee0fc49c99cfaf2329b7af526d9dd12d0.tar.xz samba-c9235deee0fc49c99cfaf2329b7af526d9dd12d0.zip |
s3: smbd: Fix *allocate* calls to follow POSIX error return convention.
vfswrap_fallocate() is broken in that it can call posix_fallocate()
which returns an int error (and doesn't set errno) but can also
call Linux fallocate() which returns -1 and sets errno.
Standardize on the -1,errno convention.
Reported by Jones <jones.kstw@gmail.com> who provided the
initial patch. This patch tested and confirmed working
by him as well.
https://bugzilla.samba.org/show_bug.cgi?id=10982
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Diffstat (limited to 'source4/ldap_server/ldap_backend.c')
0 files changed, 0 insertions, 0 deletions