vfs_gpfs: Fix return value if getting data fails
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Thu, 16 May 2019 19:29:52 +0000 (21:29 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 19 May 2019 17:34:21 +0000 (17:34 +0000)
commit3a4f23636d60799a3d3b80d395ef7af710195919
tree78bb7cd5c1c71eb6df7f6892ea62ab4dd9b06c6b
parent18965c0b84847aa0479a2b371339c309ac5d64a2
vfs_gpfs: Fix return value if getting data fails

Returning -1 in a function with bool as return value type is the same
as returning true. Change to false to indicate the error.

Detected by the help of cppcheck.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Ralph Böhme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c