]> git.ipfire.org Git - thirdparty/rsync.git/commit
syscall: fix a Y2038 bug by replacing Int32x32To64 with multiplication
authorSilent <zdanio95@gmail.com>
Mon, 13 Jan 2025 14:01:06 +0000 (15:01 +0100)
committerAndrew Tridgell <andrew@tridgell.net>
Sat, 23 Aug 2025 07:32:11 +0000 (17:32 +1000)
commit77be09aaed1f0ae309b6203c55500e41a4c5e395
tree6d4bf3395cc5eefae3dd34ecb7fd9f342c298b9b
parent0d0f61524051d58231aac5a27258d4f7413d6194
syscall: fix a Y2038 bug by replacing Int32x32To64 with multiplication

Int32x32To64 macro internally truncates the arguments to int32,
while time_t is 64-bit on most/all modern platforms.
Therefore, usage of this macro creates a Year 2038 bug.
syscall.c