e2fsprogs/tests/f_uninit_last_uninit
Andreas Dilger 90c5b4c9de debugfs: fix string_to_time for MacOS strptime()
The strptime() function does not update fields in struct tm that are
not specified in the input format.  The glibc implementation sets the
tm_yday field (%j) when any of the year (%Y), month (%m), or day (%d)
fields are changed, but the MacOS strptime() does not set tm_yday in
this case.  This caused string_to_time() to calculate the wrong Unix
epoch on MacOS. If tm_yday is unset, compute it in string_to_time().

This also fixes test regression failures for FreeBSD.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-05-22 17:52:23 -04:00
..
expect.1 e2fsck: Fix check to see if an extent-based file is fragmented 2008-08-10 22:43:24 -04:00
expect.2 e2fsck: Fix check to see if an extent-based file is fragmented 2008-08-10 22:43:24 -04:00
name Add new regression test: f_uninit_last_uninit 2008-03-31 14:32:39 -04:00
script debugfs: fix string_to_time for MacOS strptime() 2014-05-22 17:52:23 -04:00