From 2dac05e62b256653fabb6e555c5e348130455822 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 26 Mar 2024 22:40:43 +0900 Subject: [PATCH] journalctl-authenticate: drop unnecessary safe_close() Follow-up for 7560fffcd2531786b9c1ca657667a43e90331326. Addresses https://github.com/systemd/systemd/pull/31879#discussion_r1539063239. --- src/journal/journalctl-authenticate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/journal/journalctl-authenticate.c b/src/journal/journalctl-authenticate.c index de14a057ab..c31c30a2db 100644 --- a/src/journal/journalctl-authenticate.c +++ b/src/journal/journalctl-authenticate.c @@ -127,7 +127,6 @@ int action_setup_keys(void) { n = now(CLOCK_REALTIME); n /= arg_interval; - safe_close(fd); fd = mkostemp_safe(k); if (fd < 0) return log_error_errno(fd, "Failed to open %s: %m", k);