journalctl-authenticate: drop unnecessary safe_close()

Follow-up for 7560fffcd2.

Addresses https://github.com/systemd/systemd/pull/31879#discussion_r1539063239.
This commit is contained in:
Yu Watanabe
2024-03-28 09:36:29 +09:00
parent 4c56862170
commit 2dac05e62b
-1
View File
@@ -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);