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)
Thu, Oct 9, 12:17 AM
Unknown Object (File)
Sun, Sep 28, 8:53 PM
Unknown Object (File)
Aug 15 2025, 12:37 AM
Unknown Object (File)
Aug 4 2025, 1:20 PM
Unknown Object (File)
Aug 3 2025, 1:21 AM
Unknown Object (File)
Jul 28 2025, 2:34 PM
Unknown Object (File)
Jul 21 2025, 5:53 PM
Unknown Object (File)
Jul 21 2025, 5:24 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 Not Applicable
Unit
Tests Not Applicable