Page MenuHomeFreeBSD

touch: Allow setting the timestamp to -1.
ClosedPublic

Authored by des on Mar 26 2024, 3:37 AM.
Tags
None
Referenced Files
F137855619: D44504.diff
Wed, Nov 26, 11:59 AM
Unknown Object (File)
Mon, Nov 24, 8:07 PM
Unknown Object (File)
Wed, Oct 29, 11:11 PM
Unknown Object (File)
Oct 26 2025, 6:21 PM
Unknown Object (File)
Oct 9 2025, 12:17 AM
Unknown Object (File)
Sep 28 2025, 8:53 PM
Unknown Object (File)
Aug 15 2025, 12:37 AM
Unknown Object (File)
Aug 4 2025, 1:20 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