CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2026/11/29 23:08:21

Modified files:
        sys/ufs/ext2fs : ext2fs_vnops.c 

Log message:
ext2fs: read on-disk timestamps as signed

The ext2 inode keeps its times as 32-bit seconds, which Linux reads as
signed: 1901 to 2038.  ext2fs_getattr() widened them unsigned, so a
time before 1970, set by Linux or by utimes(2) here, came back in the
2100s.  Sign-extend them.  Storing needs no change: the low 32 bits of
a negative time_t are what Linux writes.

Found by xfstests generic/258.

OK miod@

Reply via email to