Skip to content

Commit

Permalink
Upstream: strftime differences cause abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman authored and andrewc12 committed Oct 6, 2022
1 parent 807bdf5 commit aac5105
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/libzfs/libzfs_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,12 @@ zfs_prop_get(zfs_handle_t *zhp, zfs_prop_t prop, char *propbuf, size_t proplen,

if (literal ||
localtime_r(&time, &t) == NULL ||
strftime(propbuf, proplen, "%a %b %e %k:%M %Y",
strftime(propbuf, proplen,
#ifdef _WIN32
"%a %b %d %H:%M %Y",
#else
"%a %b %e %k:%M %Y",
#endif
&t) == 0)
(void) snprintf(propbuf, proplen, "%llu",
(u_longlong_t)val);
Expand Down

0 comments on commit aac5105

Please sign in to comment.