Page MenuHomeFreeBSD

touch: Allow setting the timestamp to -1.
ClosedPublic

Authored by des on Mar 26 2024, 3:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 12:31 PM
Unknown Object (File)
Thu, Apr 9, 7:23 PM
Unknown Object (File)
Wed, Apr 8, 10:03 PM
Unknown Object (File)
Tue, Apr 7, 7:36 AM
Unknown Object (File)
Tue, Apr 7, 6:28 AM
Unknown Object (File)
Mar 18 2026, 7:05 AM
Unknown Object (File)
Mar 9 2026, 8:10 PM
Unknown Object (File)
Mar 5 2026, 4:00 PM
Subscribers

Details

Summary

Note that VFS internally interprets a timestamp of -1 as “do not set”,
so this has no effect, but at least touch won't incorrectly reject the
given date / time (1969-12-31 23:59:59 UTC) as invalid.

While here, fix some style issues.

MFC after: 1 week

Diff Detail

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