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)
Feb 12 2025, 7:53 PM
Unknown Object (File)
Feb 11 2025, 9:04 PM
Unknown Object (File)
Feb 5 2025, 3:12 AM
Unknown Object (File)
Jan 30 2025, 9:15 AM
Unknown Object (File)
Jan 27 2025, 11:15 AM
Unknown Object (File)
Jan 27 2025, 11:10 AM
Unknown Object (File)
Jan 26 2025, 6:36 PM
Unknown Object (File)
Jan 19 2025, 9: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