1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-15 02:50:27 +03:00
Joseph Sutton cbe6fb38ec lib/tfork: Don't overwrite 'ret' in cleanup phase
The cleanup phase of tfork_create() saves errno prior to calling
functions that might modify it, with the intention of restoring it
afterwards. However, the value of 'ret' is accidentally overwritten. It
will always be equal to 0, and hence errno will not be restored.

Fix this by introducing a new variable, ret2, for calling functions in
the cleanup phase.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
2023-01-10 20:22:32 +00:00
..
2022-08-26 18:54:37 +00:00
2016-11-16 12:41:09 +01:00
2016-05-04 01:28:23 +02:00
2021-04-27 13:24:35 +00:00
2022-04-28 13:12:33 +00:00
2017-11-20 21:41:14 +01:00
2022-11-22 18:27:33 +00:00
2016-06-07 14:34:10 +02:00
2022-02-07 19:58:57 +00:00
2021-12-15 19:32:30 +00:00
2017-03-20 12:20:08 +01:00
2015-07-07 23:51:23 +02:00
2019-09-17 22:49:36 +00:00
2021-12-13 16:22:28 +00:00
2022-12-01 22:56:39 +00:00
2022-12-01 22:56:39 +00:00
2018-11-30 08:12:31 +01:00
2021-04-19 18:18:31 +00:00
2015-10-13 01:23:07 +02:00
2021-10-08 19:28:32 +00:00
2021-10-08 19:28:32 +00:00
2015-02-13 23:32:07 +01:00
2015-07-07 23:51:23 +02:00
2015-07-07 23:51:23 +02:00
2019-10-02 08:01:40 +00:00
2019-01-28 15:44:18 +01:00
2022-07-23 23:29:38 +00:00
2019-08-07 06:07:28 +00:00
2022-04-26 21:41:29 +00:00
2020-05-15 13:18:38 +00:00
2017-03-28 17:45:19 +02:00
2021-01-25 09:48:09 +00:00
2021-05-11 22:56:37 +00:00
2022-01-24 15:25:36 +00:00
2022-12-01 22:56:39 +00:00

This directory contains libutil (until we can think of a better name)

The idea is that this library contains simple but useful data structures 
and support functions that are generally useful; not just for Samba but for 
other projects as well. Functions here should not depend on any external 
libraries, just on libc (perhaps partially provided by libreplace).