Deleted Added
full compact
27c27
< __FBSDID("$FreeBSD: stable/10/contrib/libarchive/tar/util.c 315433 2017-03-16 23:08:18Z mm $");
---
> __FBSDID("$FreeBSD: stable/10/contrib/libarchive/tar/util.c 358090 2020-02-19 01:51:44Z mm $");
668a669,676
> struct tm *ltime;
> #if defined(HAVE_LOCALTIME_R) || defined(HAVE__LOCALTIME64_S)
> struct tm tmbuf;
> #endif
> #if defined(HAVE__LOCALTIME64_S)
> errno_t terr;
> __time64_t tmptime;
> #endif
740c748,760
< strftime(tmp, sizeof(tmp), fmt, localtime(&tim));
---
> #if defined(HAVE_LOCALTIME_R)
> ltime = localtime_r(&tim, &tmbuf);
> #elif defined(HAVE__LOCALTIME64_S)
> tmptime = tim;
> terr = _localtime64_s(&tmbuf, &tmptime);
> if (terr)
> ltime = NULL;
> else
> ltime = &tmbuf;
> #else
> ltime = localtime(&tim);
> #endif
> strftime(tmp, sizeof(tmp), fmt, ltime);