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)
Sun, Jan 19, 9:24 PM
Unknown Object (File)
Wed, Jan 15, 5:34 AM
Unknown Object (File)
Nov 30 2024, 3:56 PM
Unknown Object (File)
Nov 6 2024, 3:38 PM
Unknown Object (File)
Nov 6 2024, 3:31 PM
Unknown Object (File)
Nov 6 2024, 1:26 PM
Unknown Object (File)
Oct 6 2024, 8:13 PM
Unknown Object (File)
Sep 30 2024, 3:51 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