Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/XCCDF/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,13 @@ void xccdf_status_dump(struct xccdf_status *status, int depth)
{
xccdf_print_depth(depth);
time_t date = xccdf_status_get_date(status);
printf("%-10s (%24.24s)\n", oscap_enum_to_string(XCCDF_STATUS_MAP, xccdf_status_get_status(status)),
(date ? ctime(&date) : " date not specified "));
char datebuf[26];
const char *datestr = " date not specified ";
if (date && ctime_r(&date, datebuf) != NULL)
datestr = datebuf;
printf("%-10s (%24.24s)\n",
oscap_enum_to_string(XCCDF_STATUS_MAP, xccdf_status_get_status(status)),
datestr);
}

void xccdf_status_free(struct xccdf_status *status)
Expand Down
Loading