Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360) | Christian Heimes | 2020-11-19 | 1 | -31/+34 |
| | | | Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-39968: Convert extension modules' macros of get_module_state() to inline ↵ | Hai Shi | 2020-03-16 | 1 | -4/+12 |
| | | | | functions (GH-19017) | ||||
* | bpo-38073: Make pwd module PEP-384 compatible (GH-15790) | Dino Viehland | 2019-09-10 | 1 | -16/+35 |
| | | | | | | | | | | Makes the pwd module PEP-384 compatible https://bugs.python.org/issue38073 Automerge-Triggered-By: @tiran | ||||
* | bpo-34604: Use %R because of invisible characters or trailing whitespaces. ↵ | William Grzybowski | 2018-12-05 | 1 | -1/+1 |
| | | | | (GH-9165) | ||||
* | Fix possible crashes in pwdmodule.c. (GH-10331) | Zackery Spytz | 2018-11-05 | 1 | -0/+2 |
| | | | "p" was not initialized if the first PyMem_RawRealloc() call failed. | ||||
* | bpo-35161: Fix stack-use-after-scope in grp.getgr{nam,gid} and ↵ | Alexey Izbyshev | 2018-11-04 | 1 | -2/+4 |
| | | | | | | pwd.getpw{nam,uid}. (GH-10319) Reported by ASAN. | ||||
* | bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098) | William Grzybowski | 2018-09-07 | 1 | -9/+9 |
| | | | | Pass the user/group name as Unicode to the formatting function, instead of always decoding a bytes string from UTF-8. | ||||
* | bpo-33625: Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} (GH-7081) | William Grzybowski | 2018-09-07 | 1 | -6/+98 |
| | | | | | | Release GIL on grp.getgrnam(), grp.getgrgid(), pwd.getpwnam() and pwd.getpwuid() if reentrant variants of these functions are available. Patch by William Grzybowski. | ||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+1 |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
* | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -6/+6 |
|\ | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -6/+6 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #20306: Android is the only system that returns NULL for the pw_passwd | Stefan Krah | 2016-04-26 | 1 | -1/+1 |
| | | | | | | | | | | field. Rather than cluttering the tests, translate the arguably more correct "None" to an empty string. | ||||
* | | Issue #20306: The pw_gecos and pw_passwd fields are not required by POSIX. | Stefan Krah | 2016-04-25 | 1 | -0/+8 |
|/ | | | | If they aren't present, set them to an empty string. | ||||
* | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -2/+1 |
| | |||||
* | Issue #20152: Port the pwd module to Argument Clinic. | Brett Cannon | 2014-08-22 | 1 | -26/+46 |
| | |||||
* | Issue #16136: Remove VMS support and VMS-related code | Christian Heimes | 2013-12-21 | 1 | -8/+0 |
| | |||||
* | Issue #18520: Add a new PyStructSequence_InitType2() function, same than | Victor Stinner | 2013-07-22 | 1 | -2/+3 |
| | | | | | | | | 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 | ||||
* | Raise KeyError instead of OverflowError when getpwuid's argument is out of | Serhiy Storchaka | 2013-02-11 | 1 | -1/+5 |
|\ | | | | | | | uid_t range. | ||||
| * | Raise KeyError instead of OverflowError when getpwuid's argument is out of | Serhiy Storchaka | 2013-02-11 | 1 | -1/+5 |
| | | | | | | | | uid_t range. | ||||
* | | Issue #4591: Uid and gid values larger than 2**31 are supported now. | Serhiy Storchaka | 2013-02-10 | 1 | -6/+10 |
|\ \ | |/ | |||||
| * | Issue #4591: Uid and gid values larger than 2**31 are supported now. | Serhiy Storchaka | 2013-02-10 | 1 | -6/+10 |
| | | |||||
* | | #16135: Removal of OS/2 support (Modules/*) | Jesus Cea | 2012-10-05 | 1 | -4/+0 |
|/ | |||||
* | Include structseq.h in Python.h, and remove now-redundant includes in ↵ | Georg Brandl | 2010-11-30 | 1 | -1/+0 |
| | | | | individual sources. | ||||
* | Issue #8983: Corrected docstrings. | Alexander Belopolsky | 2010-08-16 | 1 | -3/+3 |
| | |||||
* | Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a Unicode | Victor Stinner | 2010-05-15 | 1 | -3/+1 |
| | | | | | | object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set, fall back to UTF-8. | ||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -110/+110 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ | ||||
* | correct call | Benjamin Peterson | 2010-05-07 | 1 | -3/+1 |
| | |||||
* | Replace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding, | Victor Stinner | 2010-05-07 | 1 | -1/+1 |
| | | | | "surrogateescape") by PyUnicode_DecodeFSDefault(val). | ||||
* | Merged revisions 73016 via svnmerge from | Martin v. Löwis | 2009-05-29 | 1 | -0/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73016 | martin.v.loewis | 2009-05-29 17:58:08 +0200 (Fr, 29 Mai 2009) | 2 lines Issue #4873: Fix resource leaks in error cases of pwd and grp. ........ | ||||
* | Issue #4859: Implement PEP 383 for pwd, spwd, and grp. | Martin v. Löwis | 2009-05-29 | 1 | -5/+17 |
| | |||||
* | remove old undocumented compat interfaces in hashlib and pwd #5881 | Benjamin Peterson | 2009-05-04 | 1 | -4/+3 |
| | |||||
* | Implement PEP 3121: new module initialization and finalization API. | Martin v. Löwis | 2008-06-11 | 1 | -3/+17 |
| | |||||
* | Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵ | Christian Heimes | 2007-12-02 | 1 | -1/+1 |
| | | | | in intobject.h | ||||
* | Get the locale and pwd tests working on the Solaris box where there | Neal Norwitz | 2007-10-27 | 1 | -2/+5 |
| | | | | | are some unicode values used. I'm not sure if this is the correct on all operating systems, but this works on Linux w/o unicode. | ||||
* | Use unicode for password modules | Neal Norwitz | 2007-08-24 | 1 | -2/+2 |
| | |||||
* | Merge p3yk branch with the trunk up to revision 45595. This breaks a fair | Thomas Wouters | 2006-04-21 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway. | ||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | - Changes donated by Elemental Security to make it work on AIX 5.3 | Guido van Rossum | 2005-09-14 | 1 | -2/+2 |
| | | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron). | ||||
* | pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error | Barry Warsaw | 2004-01-20 | 1 | -2/+4 |
| | | | | messages. | ||||
* | - The pwd module incorrectly advertised its struct type as | Guido van Rossum | 2003-10-23 | 1 | -0/+2 |
| | | | | | struct_pwent; this has been renamed to struct_passwd. (The old name is still supported for backwards compatibility.) | ||||
* | Patch #614055: Support OpenVMS. | Martin v. Löwis | 2002-12-06 | 1 | -0/+8 |
| | |||||
* | Deal with NULL fields in mkpwent. | Martin v. Löwis | 2002-09-17 | 1 | -1/+12 |
| | |||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -14/+16 |
| | |||||
* | Remove unused variable reported by Walter Dörwald | Neal Norwitz | 2002-04-15 | 1 | -1/+1 |
| | |||||
* | initpwd(): Clean up initialization, avoid PyModule_GetDict(). | Fred Drake | 2002-04-13 | 1 | -4/+4 |
| | |||||
* | Remove METH_OLDARGS: | Neal Norwitz | 2002-03-31 | 1 | -4/+4 |
| | | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke. | ||||
* | Add missing typecast. | Neil Schemenauer | 2002-03-29 | 1 | -1/+2 |
| | |||||
* | Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS. | Neal Norwitz | 2002-03-25 | 1 | -4/+2 |
| | |||||
* | OS/2 EMX port changes (Modules part of patch #450267): | Andrew MacIntyre | 2002-03-03 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c |