summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38073: Make pwd module PEP-384 compatible (GH-15790)Dino Viehland2019-09-101-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 Grzybowski2018-12-051-1/+1
| | | | (GH-9165)
* Fix possible crashes in pwdmodule.c. (GH-10331)Zackery Spytz2018-11-051-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 Izbyshev2018-11-041-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 Grzybowski2018-09-071-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 Grzybowski2018-09-071-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 Storchaka2017-06-281-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 functionsSerhiy Storchaka2016-07-071-6/+6
|\ | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-6/+6
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #20306: Android is the only system that returns NULL for the pw_passwdStefan Krah2016-04-261-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 Krah2016-04-251-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 Storchaka2015-04-031-2/+1
|
* Issue #20152: Port the pwd module to Argument Clinic.Brett Cannon2014-08-221-26/+46
|
* Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-8/+0
|
* Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-221-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 ofSerhiy Storchaka2013-02-111-1/+5
|\ | | | | | | uid_t range.
| * Raise KeyError instead of OverflowError when getpwuid's argument is out ofSerhiy Storchaka2013-02-111-1/+5
| | | | | | | | uid_t range.
* | Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-101-6/+10
|\ \ | |/
| * Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-101-6/+10
| |
* | #16135: Removal of OS/2 support (Modules/*)Jesus Cea2012-10-051-4/+0
|/
* Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl2010-11-301-1/+0
| | | | individual sources.
* Issue #8983: Corrected docstrings.Alexander Belopolsky2010-08-161-3/+3
|
* Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a UnicodeVictor Stinner2010-05-151-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 fromAntoine Pitrou2010-05-091-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 callBenjamin Peterson2010-05-071-3/+1
|
* Replace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,Victor Stinner2010-05-071-1/+1
| | | | "surrogateescape") by PyUnicode_DecodeFSDefault(val).
* Merged revisions 73016 via svnmerge fromMartin v. Löwis2009-05-291-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öwis2009-05-291-5/+17
|
* remove old undocumented compat interfaces in hashlib and pwd #5881Benjamin Peterson2009-05-041-4/+3
|
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-3/+17
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-1/+1
| | | | in intobject.h
* Get the locale and pwd tests working on the Solaris box where thereNeal Norwitz2007-10-271-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 modulesNeal Norwitz2007-08-241-2/+2
|
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-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 Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-141-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 errorBarry Warsaw2004-01-201-2/+4
| | | | messages.
* - The pwd module incorrectly advertised its struct type asGuido van Rossum2003-10-231-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öwis2002-12-061-0/+8
|
* Deal with NULL fields in mkpwent.Martin v. Löwis2002-09-171-1/+12
|
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-14/+16
|
* Remove unused variable reported by Walter DörwaldNeal Norwitz2002-04-151-1/+1
|
* initpwd(): Clean up initialization, avoid PyModule_GetDict().Fred Drake2002-04-131-4/+4
|
* Remove METH_OLDARGS:Neal Norwitz2002-03-311-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 Schemenauer2002-03-291-1/+2
|
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-251-4/+2
|
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-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
* Patch #523268, #522027: return enhanced tuples.Martin v. Löwis2002-03-011-12/+59
|
* Got rid of a few more NeXT ifdefs. The last, I think.Jack Jansen2002-02-011-7/+0
|