Page MenuHomeFreeBSD

touch: Allow setting the timestamp to -1.
ClosedPublic

Authored by des on Mar 26 2024, 3:37 AM.
Tags
None
Referenced Files
F147306099: D44504.id136258.diff
Mon, Mar 9, 8:10 PM
Unknown Object (File)
Thu, Mar 5, 4:00 PM
Unknown Object (File)
Feb 8 2026, 11:45 AM
Unknown Object (File)
Feb 7 2026, 7:29 PM
Unknown Object (File)
Jan 31 2026, 10:18 AM
Unknown Object (File)
Jan 20 2026, 10:03 AM
Unknown Object (File)
Jan 18 2026, 4:42 PM
Unknown Object (File)
Jan 18 2026, 7:41 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