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 27, 2:43 AM
Unknown Object (File)
Sat, Apr 20, 8:09 PM
Unknown Object (File)
Tue, Apr 9, 7:27 PM
Unknown Object (File)
Fri, Mar 29, 5:32 PM
Unknown Object (File)
Mar 27 2024, 11:25 PM
Unknown Object (File)
Mar 27 2024, 11:54 AM
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