vfs_fruit: remove a fsp check from ad_fset()
authorRalph Boehme <slow@samba.org>
Tue, 2 Nov 2021 04:34:59 +0000 (05:34 +0100)
committerJule Anger <janger@samba.org>
Wed, 10 Nov 2021 16:21:10 +0000 (16:21 +0000)
commitf926586544e8c92b58ccba133992f75f8c33c5a1
treeac5329159870cb1239e1cf25545c70d0666cff0e
parent3a34628266f8df1513092ec8bdf0c391b6afc7c4
vfs_fruit: remove a fsp check from ad_fset()

This comes from times before we had pathref fsps. Back then if you wanted to
check if fsp->fh->fd contained a valid value != -1, you'd also first check that
the passed in fsp and fsp->fh are non NULL. With pathref fsps we don't need this
anymore.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14890
RN: Crash in vfs_fruit asking for fsp_get_io_fd() for an XATTR call

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 50c550e1ad422a1220d0862a3f637e5fb774f288)
source3/lib/adouble.c