Christian Heimes
fa2eee975d
bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-18 23:47:32 -08:00
Hai Shi
f707d94af6
bpo-39968: Convert extension modules' macros of get_module_state() to inline functions (GH-19017)
2020-03-16 14:15:01 +01:00
Dino Viehland
b7f8e52433
bpo-38073: Make pwd module PEP-384 compatible (GH-15790)
...
Makes the pwd module PEP-384 compatible
https://bugs.python.org/issue38073
Automerge-Triggered-By: @tiran
2019-09-10 05:59:43 -07:00
William Grzybowski
34c7f0c04e
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165)
2018-12-05 21:10:18 +02:00
Zackery Spytz
570e371fd6
Fix possible crashes in pwdmodule.c. (GH-10331)
...
"p" was not initialized if the first PyMem_RawRealloc() call failed.
2018-11-05 21:26:40 +02:00
Alexey Izbyshev
e359bc24b1
bpo-35161: Fix stack-use-after-scope in grp.getgr{nam,gid} and pwd.getpw{nam,uid}. (GH-10319)
...
Reported by ASAN.
2018-11-04 17:44:16 +02:00
William Grzybowski
28658485a5
bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)
...
Pass the user/group name as Unicode to the formatting function,
instead of always decoding a bytes string from UTF-8.
2018-09-07 19:10:39 +02:00
William Grzybowski
23e65b2555
bpo-33625: Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} (GH-7081)
...
Release GIL on grp.getgrnam(), grp.getgrgid(), pwd.getpwnam() and
pwd.getpwuid() if reentrant variants of these functions are available.
Patch by William Grzybowski.
2018-09-07 14:06:15 +02:00
Serhiy Storchaka
f7eae0adfc
[security] bpo-13617: Reject embedded null characters in wchar* strings. ( #2302 )
...
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters.
2017-06-28 08:30:06 +03:00
Serhiy Storchaka
2954f83999
- Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 18:20:03 +03:00
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Stefan Krah
45009778aa
Issue #20306 : Android is the only system that returns NULL for the pw_passwd
...
field. Rather than cluttering the tests, translate the arguably more correct
"None" to an empty string.
2016-04-26 11:43:21 +02:00
Stefan Krah
267b639a26
Issue #20306 : The pw_gecos and pw_passwd fields are not required by POSIX.
...
If they aren't present, set them to an empty string.
2016-04-26 01:09:18 +02:00
Serhiy Storchaka
1009bf18b3
Issue #23501 : Argumen Clinic now generates code into separate files by default.
2015-04-03 23:53:51 +03:00
Brett Cannon
3d25e16760
Issue #20152 : Port the pwd module to Argument Clinic.
2014-08-22 14:03:51 -04:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
Victor Stinner
1c8f059019
Issue #18520 : Add a new PyStructSequence_InitType2() function, same than
...
PyStructSequence_InitType() except that it has a return value (0 on success,
-1 on error).
* PyStructSequence_InitType2() now raises MemoryError on memory allocation failure
* Fix also some calls to PyDict_SetItemString(): handle error
2013-07-22 22:24:54 +02:00
Serhiy Storchaka
fd6e6cfa29
Raise KeyError instead of OverflowError when getpwuid's argument is out of
...
uid_t range.
2013-02-11 20:33:24 +02:00
Serhiy Storchaka
55e2238272
Raise KeyError instead of OverflowError when getpwuid's argument is out of
...
uid_t range.
2013-02-11 20:32:47 +02:00
Serhiy Storchaka
c2d020090b
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
2013-02-10 22:03:08 +02:00
Serhiy Storchaka
7cf5599346
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
2013-02-10 21:56:49 +02:00
Jesus Cea
14c81aba50
#16135 : Removal of OS/2 support (Modules/*)
2012-10-05 02:11:36 +02:00
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
2010-11-30 09:30:54 +00:00
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
2010-08-16 20:17:07 +00:00
Victor Stinner
ae6265f8d0
Issue #8715 : Create PyUnicode_EncodeFSDefault() function: Encode a Unicode
...
object to Py_FileSystemDefaultEncoding with the "surrogateescape" error
handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set,
fall back to UTF-8.
2010-05-15 16:27:27 +00:00