mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
252d2cc76a
commit
846adcb259
@ -738,7 +738,9 @@ static int vfswrap_openat(vfs_handle_struct *handle,
|
||||
mode);
|
||||
|
||||
if (became_root) {
|
||||
int err = errno;
|
||||
unbecome_root();
|
||||
errno = err;
|
||||
}
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user