]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph: call 'ceph_fgetxattr' only if valid fd
authorShachar Sharon <ssharon@redhat.com>
Thu, 16 Nov 2023 09:57:02 +0000 (11:57 +0200)
committerJule Anger <janger@samba.org>
Mon, 11 Dec 2023 13:21:02 +0000 (13:21 +0000)
commit849c370d92a1fca18450ba7d0064e1adab4a77e4
treed3b9cbecbd2e97681eb80d2f6e88117c51056d75
parent0a8cf4f1c067754e3f9805f1365d43b8acdeb322
vfs_ceph: call 'ceph_fgetxattr' only if valid fd

Align getxattr logic with the rest of xattr hooks: call ceph_fgetxattr
with appropriate io-fd when 'is_pathref' is false; otherwise, call
ceph_getxattr.

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

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Nov 30 12:32:29 UTC 2023 on atb-devel-224

(cherry picked from commit 83edfcff5ccd8c4c710576b6d5612e0578d168c8)

Autobuild-User(v4-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Mon Dec 11 13:21:02 UTC 2023 on atb-devel-224
source3/modules/vfs_ceph.c