]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_fruit: check fake_fd in fruit_pread_meta_stream()
authorRalph Boehme <slow@samba.org>
Fri, 11 Dec 2020 12:00:56 +0000 (13:00 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 8 Jan 2021 20:31:33 +0000 (20:31 +0000)
commitc5da08422990dfc1e082bc01aa10d6e415eebe3f
tree39b5328b0e406831c7b92aad512aa183abebcca9
parent36eb30fd7d4b82bffd0e1ab471c088f678d700a4
vfs_fruit: check fake_fd in fruit_pread_meta_stream()

Don't call into the next VFS backend if we know we still have a fake-fd. Just
return -1 and the caller has the logic to handle this, which results in
returning a AFP_AfpInfo blob initialized with some defaults.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14596

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c