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)
Oct 6 2024, 8:13 PM
Unknown Object (File)
Sep 30 2024, 3:51 PM
Unknown Object (File)
Sep 29 2024, 6:00 PM
Unknown Object (File)
Sep 26 2024, 5:52 AM
Unknown Object (File)
Sep 18 2024, 5:29 PM
Unknown Object (File)
Sep 8 2024, 7:33 AM
Unknown Object (File)
Sep 5 2024, 4:26 AM
Unknown Object (File)
Jul 22 2024, 7:10 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