]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120054)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 4 Jun 2024 17:12:13 +0000 (20:12 +0300)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 17:12:13 +0000 (17:12 +0000)
commitf98ec7574a5ee3dc5db996a5037483f57465e18d
tree721eea5c4417390ad42e92b5aed18adad2eac90b
parent0e150c36dee1734a6a60f1ebd924e90fb3fe1458
[3.12] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120054)

Fix os.major(), os.minor() and os.makedev().
Support device numbers larger than 2**63-1.
Support non-existent device number (NODEV).
(cherry picked from commit 7111d9605f9db7aa0b095bb8ece7ccc0b8115c3f)
Lib/test/test_posix.py
Misc/NEWS.d/next/Library/2022-03-10-16-47-57.bpo-45767.ywmyo1.rst [new file with mode: 0644]
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c