Enrico Scholz aed99b13e0
lib/copydir.c: copy_entry(): Use temporary stat buffer
There are no guarantees that fstatat() does not clobber the stat
buffer on errors.

Use a temporary buffer so that the following code sees correct
attributes of the source entry.

Link: <https://github.com/shadow-maint/shadow/issues/973>
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: 000619344ddb ("lib/copydir:copy_entry(): use temporary stat buffer")
Link: <https://github.com/shadow-maint/shadow/pull/974>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-03-22 00:19:06 +01:00
..
2023-09-10 14:13:01 +02:00
2024-02-20 22:48:02 +01:00
2023-06-08 09:05:39 -05:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-02-24 12:44:14 -06:00
2023-10-30 00:00:15 +01:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-08-04 17:15:42 -05:00
2022-12-29 13:58:49 -06:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2024-03-13 23:19:51 +01:00
2023-03-31 09:53:40 -05:00
2021-12-23 19:36:50 -06:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-09-10 14:13:01 +02:00
2023-06-08 09:05:39 -05:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2021-12-23 19:36:50 -06:00
2023-06-08 09:05:39 -05:00
2021-12-23 19:36:50 -06:00
2023-06-08 09:05:39 -05:00
2021-12-23 19:36:50 -06:00
2023-06-08 09:05:39 -05:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2024-02-20 22:48:02 +01:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2022-12-22 11:43:29 +01:00
2023-09-10 14:13:01 +02:00
2023-02-16 11:29:33 +01:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2022-12-22 11:43:29 +01:00
2023-06-08 09:05:39 -05:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2021-12-23 19:36:50 -06:00
2022-12-22 11:43:29 +01:00
2022-05-24 07:49:11 -05:00
2024-02-14 04:07:32 +01:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-02-23 20:28:43 -06:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-06-08 09:05:39 -05:00
2022-05-24 07:49:11 -05:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2022-12-22 11:43:29 +01:00
2023-06-08 09:05:39 -05:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-01-26 22:44:39 -06:00
2023-02-23 20:28:43 -06:00
2023-09-10 14:13:01 +02:00
2023-06-08 09:05:39 -05:00
2023-02-16 11:29:33 +01:00
2023-02-16 11:29:33 +01:00
2023-09-10 14:13:01 +02:00
2023-06-08 09:05:39 -05:00
2023-09-10 14:13:01 +02:00
2023-02-09 10:03:03 -06:00
2010-03-18 19:23:00 +00:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-08-04 17:15:42 -05:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00
2023-09-10 14:13:01 +02:00