]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph{_new}: do not set errno upon successful call to libcephfs
authorShachar Sharon <ssharon@redhat.com>
Tue, 30 Jul 2024 06:55:44 +0000 (09:55 +0300)
committerGünther Deschner <gd@samba.org>
Wed, 7 Aug 2024 13:02:34 +0000 (13:02 +0000)
commita7f4e2bd47c7f4728f3ac8d90af693156a69c557
treee958e9e11c9c08b6d7dc6a62a20547b673c91030
parentc0d0767a3ab2c0cd5c4f2fa5cd77f3b678794d63
vfs_ceph{_new}: do not set errno upon successful call to libcephfs

There is code in Samba that expects errno from a previous system call
to be preserved through a subsequent system call. Thus, avoid setting
"errno = 0" in status_code() and lstatus_code() upon successful return
from libcephfs API call.

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

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/modules/vfs_ceph.c
source3/modules/vfs_ceph_new.c