From: J William Piggott Date: Tue, 29 Aug 2017 01:19:55 +0000 (-0400) Subject: hwclock: close hwaudit_fd unconditionally X-Git-Tag: v2.31-rc1~84^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b8e46f7e7710e2bb88ff8e763997830c9494df2;p=thirdparty%2Futil-linux.git hwclock: close hwaudit_fd unconditionally Signed-off-by: J William Piggott --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index e471fe1aef..9fb631f6fb 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1379,8 +1379,8 @@ hwclock_exit(const struct hwclock_control *ctl audit_log_user_message(hwaudit_fd, AUDIT_USYS_CONFIG, "op=change-system-time", NULL, NULL, NULL, status); - close(hwaudit_fd); } + close(hwaudit_fd); #endif exit(status); }