e2fsprogs/tests/f_dup_resize
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 Make e2fsck Pass 1C header consistent with the other headers 2005-07-04 13:08:37 -05:00
expect.2 e2fsck: Fix check to see if an extent-based file is fragmented 2008-08-10 22:43:24 -04:00
name Don't offer to update or clone the resize inode when e2fsck deals with 2005-04-14 17:10:14 -04:00
script debugfs: fix string_to_time for MacOS strptime() 2014-05-22 17:52:23 -04:00