summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-12-05 15:31:19 -0800
committerKarolin Seeger <kseeger@samba.org>2014-12-08 10:16:13 +0100
commit5b5546b28a401d7cc77402455b62ea5f69753499 (patch)
treebb413448d9a0cbbddf633fb0c8ae71a994933698 /source3/smbd
parent8999acabfc3aaf9fcfecb4e71a2af96c74021a8d (diff)
downloadsamba-5b5546b28a401d7cc77402455b62ea5f69753499.tar.gz
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> (cherry picked from commit c9235deee0fc49c99cfaf2329b7af526d9dd12d0)
Diffstat (limited to 'source3/smbd')
0 files changed, 0 insertions, 0 deletions