summaryrefslogtreecommitdiff
path: root/src/locale/localed.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-13 18:04:48 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-14 20:18:58 +0900
commit56b7f112ed7e3e5e6f495e8d01a89c292c9f8847 (patch)
tree39169f19e32af849efbf58e269fc4ff401bfdb7e /src/locale/localed.c
parent00afa6a38fbd05f79ffc1b1365ad68f63e7ac335 (diff)
downloadsystemd-56b7f112ed7e3e5e6f495e8d01a89c292c9f8847.tar.gz
locale-setup: avoid TOCTOU in reading locale.conf
Diffstat (limited to 'src/locale/localed.c')
-rw-r--r--src/locale/localed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c
index ebce509b30..737cc69079 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -764,9 +764,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
}
static int run(int argc, char *argv[]) {
- _cleanup_(context_clear) Context context = {
- .locale_context.mtime = USEC_INFINITY,
- };
+ _cleanup_(context_clear) Context context = {};
_cleanup_(sd_event_unrefp) sd_event *event = NULL;
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
int r;