]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: avoid setting errno in cephmount_cache_update
authorShachar Sharon <ssharon@redhat.com>
Wed, 4 Sep 2024 12:59:21 +0000 (15:59 +0300)
committerJule Anger <janger@samba.org>
Mon, 17 Feb 2025 09:53:26 +0000 (09:53 +0000)
commit79d6da01caa55a978fdb7d023c2347a7503641c2
tree75eb15bc99188eda0b4f7c3af88bc21fbf0743b6
parentab29d3eb6eef45ee5436bc22681ebbefab1a4842
vfs_ceph_new: avoid setting errno in cephmount_cache_update

Do not set 'errno' to ENOENT in cephmount_cache_update. Setting this
errno value upon newly inserted entry may cause vfs_ceph_connect to
change errno to non-zero value even though the final result is OK.

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

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1f7581c9edb32a2a63bf032f7e167be8a401c3d5)
source3/modules/vfs_ceph_new.c