1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

smbd: Save errno around unbecome_root()

Probably not required, but better safe than sorry.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-10-16 12:00:39 +02:00 committed by Jeremy Allison
parent 252d2cc76a
commit 846adcb259

View File

@ -738,7 +738,9 @@ static int vfswrap_openat(vfs_handle_struct *handle,
mode);
if (became_root) {
int err = errno;
unbecome_root();
errno = err;
}
done: