Werk #14708: fileinfo: Fix crash with negative file age

Component Checks & agents
Title fileinfo: Fix crash with negative file age
Date Dec 16, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p19 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, fileinfo and fileinfo group services would crash if the file's creation timestamp was from the future.

Now, the service state is UNKNOWN and there is a message indicating the problem.

To the list of all Werks