Message360954
I managed to reproduce the issue on Fedora 31 on a XFS filesystem:
$ touch testfn
$ strace -o trace python3 -c 'import os; os.utime("testfn", (4386268800, 4386268800))'
$ grep ^utimensat trace
utimensat(AT_FDCWD, "testfn", [{tv_sec=4386268800, tv_nsec=0} /* 2108-12-30T01:00:00+0100 */, {tv_sec=4386268800, tv_nsec=0} /* 2108-12-30T01:00:00+0100 */], 0) = 0
$ stat testfn
(...)
Modify: 2038-01-19 04:14:07.000000000 +0100
(...)
It looks like a Linux kernel issue in the XFS filesystem: I don't think that mtime should be *silently* truncated to 2147483647. |
|
Date |
User |
Action |
Args |
2020-01-29 11:29:41 | vstinner | set | recipients:
+ vstinner, fweimer, David.Edelsohn, hroncok, Dormouse759 |
2020-01-29 11:29:41 | vstinner | set | messageid: <1580297381.93.0.989779315406.issue39460@roundup.psfhosted.org> |
2020-01-29 11:29:41 | vstinner | link | issue39460 messages |
2020-01-29 11:29:41 | vstinner | create | |
|