Yossi Gottlieb
b548ffabbe
CONFIG REWRITE should honor umask settings. ( #8371 )
...
Fixes a regression introduced due to a new (safer) way of rewriting configuration files. In the past the file was simply overwritten (same inode), but now Redis creates a new temporary file and later renames it over the old one.
The temp file typically gets created with 0600 permissions so we later fchmod it to fix that. Unlike open with O_CREAT, fchmod doesn't consider umask so we have to do that explicitly.
Fixes #8369
2021-01-20 21:57:24 +02:00
..
2021-01-20 11:47:06 +02:00
2021-01-04 17:02:57 +02:00
2020-11-09 21:48:56 -08:00
2020-04-08 12:55:57 +02:00
2021-01-19 22:57:30 +02:00
2021-01-19 22:57:30 +02:00
2021-01-19 22:57:30 +02:00
2021-01-19 22:57:30 +02:00
2020-08-28 11:54:10 +03:00
2021-01-19 22:57:30 +02:00
2021-01-19 22:57:30 +02:00
2021-01-07 16:14:29 +02:00
2020-03-07 19:38:27 +08:00
2020-12-13 17:09:54 +02:00
2020-12-23 19:13:12 -08:00
2020-12-23 19:13:12 -08:00
2020-12-23 19:06:25 -08:00
2021-01-19 13:15:33 +02:00
2021-01-08 23:35:30 +02:00
2020-11-04 14:49:15 +02:00
2020-11-04 14:49:15 +02:00
2021-01-19 22:57:30 +02:00
2021-01-13 12:36:03 -08:00
2021-01-20 21:57:24 +02:00
2020-12-06 15:30:29 +02:00
2020-11-25 13:37:54 -08:00
2020-10-28 21:13:44 +02:00
2020-03-22 14:42:03 +02:00
2019-03-01 17:53:14 +01:00
2021-01-09 19:52:42 +02:00
2020-04-24 17:00:03 -07:00
2021-01-05 09:15:10 +02:00
2020-04-24 17:11:21 -07:00
2021-01-15 15:32:58 +02:00
2021-01-04 17:02:57 +02:00
2020-12-21 22:57:45 -08:00
2021-01-04 23:16:19 +02:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2020-09-10 13:43:38 +03:00
2018-07-03 18:19:46 +02:00
2021-01-07 23:36:54 -08:00
2021-01-13 12:00:55 -08:00
2020-08-28 11:54:10 +03:00
2021-01-08 18:29:44 +02:00
2020-12-12 02:21:05 +02:00
2020-12-12 02:21:05 +02:00
2020-04-09 17:48:29 +08:00
2020-12-12 02:21:05 +02:00
2019-02-24 21:38:15 +01:00
2020-11-08 08:32:38 +02:00
2020-12-23 19:06:25 -08:00
2021-01-09 19:52:42 +02:00
2020-12-06 14:54:34 +02:00
2021-01-04 17:02:57 +02:00
2020-10-27 15:04:18 +02:00
2021-01-15 15:32:58 +02:00
2017-12-01 10:24:24 +01:00
2020-12-06 14:54:34 +02:00
2020-12-06 14:54:34 +02:00
2018-09-18 17:04:00 +08:00
2020-09-10 13:43:38 +03:00
2019-10-28 11:10:58 +01:00
2020-09-10 13:43:38 +03:00
2020-05-05 23:35:08 -04:00
2020-12-06 14:54:34 +02:00
2020-09-10 13:43:38 +03:00
2020-12-23 15:52:07 +02:00
2020-09-29 15:52:13 +03:00
2019-11-19 17:23:47 +08:00
2021-01-20 11:47:06 +02:00
2020-08-28 11:54:10 +03:00
2020-08-28 11:54:10 +03:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2021-01-04 14:48:28 +02:00
2021-01-19 22:57:30 +02:00
2020-09-10 13:43:38 +03:00
2021-01-04 17:02:57 +02:00
2021-01-04 17:02:57 +02:00
2021-01-09 19:52:42 +02:00
2020-09-10 13:43:38 +03:00
2021-01-09 19:52:42 +02:00
2020-09-10 13:43:38 +03:00
2021-01-12 08:22:53 +02:00
2020-09-22 10:18:07 +03:00
2020-12-23 15:52:07 +02:00
2019-05-08 12:13:45 +01:00
2020-12-23 15:52:07 +02:00
2021-01-13 12:00:55 -08:00
2018-07-13 10:51:58 +02:00
2020-12-06 14:54:34 +02:00
2021-01-07 16:14:29 +02:00
2019-10-02 11:30:20 +02:00
2021-01-07 23:36:54 -08:00
2020-07-24 14:40:19 +08:00
2019-10-07 21:06:30 +03:00
2021-01-15 15:32:58 +02:00
2021-01-05 18:41:53 +02:00
2020-12-06 14:54:34 +02:00
2020-12-06 14:54:34 +02:00
2021-01-19 22:57:30 +02:00
2021-01-20 21:57:24 +02:00
2021-01-20 21:57:24 +02:00
2020-10-25 14:14:05 +02:00
2020-12-08 11:27:30 +02:00
2019-09-12 12:21:37 +02:00
2019-09-12 12:21:37 +02:00
2020-09-10 13:43:38 +03:00
2021-01-04 17:02:57 +02:00
2019-12-02 00:28:41 -05:00
2021-01-04 10:28:47 +02:00
2020-09-10 13:43:38 +03:00
2020-12-06 14:54:34 +02:00
2020-12-15 09:30:24 +02:00
2020-12-29 22:37:37 -08:00
2020-12-23 19:06:25 -08:00
2021-01-08 18:13:25 +02:00
2020-12-23 19:06:25 -08:00
2021-01-13 11:58:12 +02:00
2020-12-21 22:57:45 -08:00
2020-07-21 08:13:05 +03:00
2020-12-13 11:11:29 +02:00
2021-01-08 00:00:35 -08:00
2021-01-18 11:37:05 +02:00
2021-01-18 11:37:05 +02:00
2020-12-06 14:54:34 +02:00
2020-10-11 17:21:58 +03:00
2021-01-09 19:52:42 +02:00
2020-12-06 14:54:34 +02:00
2020-12-06 14:54:34 +02:00
2020-12-06 14:54:34 +02:00
2021-01-08 23:35:30 +02:00
2020-12-06 14:54:34 +02:00