]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120053)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jun 2024 17:19:13 +0000 (19:19 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 17:19:13 +0000 (17:19 +0000)
commit2acbdc23ad4dd14b3b6ad22e06d6477dc57b0530
treed328533c9795692917834ac3421481ba9c8d4574
parent54023a63ccd273776f8b411cb904b1f88fc1e231
[3.13] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120053)

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)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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