Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sbin/gpt
Module Name: src
Committed By: kre
Date: Tue Feb 10 05:08:21 UTC 2026
Modified Files:
src/sbin/gpt: gpt.8 main.c
Log Message:
Alter parsing order for -T (general option)
Change the way the -T option is processed, so giving an
integer value (seconds from the epoch) is deterministic,
rather than relying upon parsedate() either not being
present, or deciding to reject the integer.
That makes timestamps generated from a tools build of
gpt will not necessarily produce the same uuids as those
from a full build, depending upon just what integer
value was selected.
Currently checking for a file is still done first (perhaps
that should change as well, but is quite unlikely to make
a difference) but now we try to parse the arg as an
integer next, and only if that fails, try parsedate().
This should make things all nicely deterministic, which is
the point of -T
As it was, -T0 meant 'midnight at the start of today, local
time' so was only deterministic for a day, and only in the
same timezone. Now it means the epoch (the same everywhere).
If one wants 'midnight at the start of today' for some
reason, -T00:00 will do that (provided parsedate() is
available).
To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sbin/gpt/gpt.8
cvs rdiff -u -r1.17 -r1.18 src/sbin/gpt/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index