]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph: Handle absolute paths with dirfd = ‑1 in openat master
authorAnoop C S <anoopcs@samba.org>
Sun, 15 Feb 2026 04:27:18 +0000 (09:57 +0530)
committerAnoop C S <anoopcs@samba.org>
Mon, 16 Feb 2026 17:27:03 +0000 (17:27 +0000)
commitc0e5ffdc16b7bc8aae869c294c3c4a803859482c
treeeb43fee48a0d7121010290a5357e7fcd1eff8d53
parent4468d8274c6df1c5d6d6430b6ea768c40048fe8a
vfs_ceph: Handle absolute paths with dirfd = ‑1 in openat

ceph_openat() does not follow the convention of ignoring 'dirfd' when
the pathname is absolute, resulting in EBADF. As a temporary workaround,
handle this special case in cephwrap_openat() by calling ceph_open()
directly instead of ceph_openat().

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Shwetha K Acharya <Shwetha.K.Acharya@ibm.com>
Reviewed-by: Xavi Hernandez <xhernandez@redhat.com>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Feb 16 17:27:03 UTC 2026 on atb-devel-224
source3/modules/vfs_ceph.c