From: Yu Watanabe Date: Tue, 26 Mar 2024 13:40:43 +0000 (+0900) Subject: journalctl-authenticate: drop unnecessary safe_close() X-Git-Tag: v256-rc1~372^2~2 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=2dac05e62b256653fabb6e555c5e348130455822;p=systemd%2F.git journalctl-authenticate: drop unnecessary safe_close() Follow-up for 7560fffcd2531786b9c1ca657667a43e90331326. Addresses https://github.com/systemd/systemd/pull/31879#discussion_r1539063239. --- 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);