Page MenuHomeFreeBSD

makefs: Use gmtime() instead of localtime for timestamps
ClosedPublic

Authored by markj on May 6 2025, 3:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 31, 12:59 AM
Unknown Object (File)
Mon, Aug 25, 11:18 AM
Unknown Object (File)
Sun, Aug 17, 5:20 PM
Unknown Object (File)
Tue, Aug 12, 2:19 AM
Unknown Object (File)
Mon, Aug 11, 12:54 AM
Unknown Object (File)
Jul 30 2025, 3:44 AM
Unknown Object (File)
Jul 29 2025, 3:10 AM
Unknown Object (File)
Jul 29 2025, 3:09 AM
Subscribers

Details

Summary

Otherwise the output file's contents will depend on the configured time
zone.

Sponsored by: Klara, Inc.
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63948
Build 60832: arc lint + arc unit

Event Timeline

markj requested review of this revision.May 6 2025, 3:59 PM

I wonder if it would make sense to use gmtime_r unconditionally?

I wonder if it would make sense to use gmtime_r unconditionally?

That would probably be fine. There's no real reason to expect the resulting image to be mounted in the same time zone as the host where it was created...

Anyhow I'm fine either as is or with only gmtime_r.

This revision is now accepted and ready to land.May 6 2025, 4:49 PM