mirror of
https://github.com/samba-team/samba.git
synced 2025-09-18 09:44:19 +03:00
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>
(cherry picked from commit a7f4e2bd47
)
This commit is contained in:
committed by
Jule Anger
parent
0042d90249
commit
07f156d843
@@ -66,7 +66,6 @@ static int status_code(int ret)
|
|||||||
errno = -ret;
|
errno = -ret;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
errno = 0;
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +75,6 @@ static ssize_t lstatus_code(intmax_t ret)
|
|||||||
errno = -((int)ret);
|
errno = -((int)ret);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
errno = 0;
|
|
||||||
return (ssize_t)ret;
|
return (ssize_t)ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user