Commit Graph

535 Commits

Author SHA1 Message Date
Serhiy Storchaka
3c9ce74c21 Issue #23908: os functions, open() and the io.FileIO constructor now reject
unicode paths with embedded null character on Windows instead of silently
truncate them.
2016-07-01 23:34:44 +03:00
Serhiy Storchaka
be8c6ae56e Issue #24611: Fixed compiling the posix module on non-Windows platforms
without mknod() or makedev() (e.g. on Unixware).
2015-07-12 16:41:29 +03:00
Serhiy Storchaka
9aa16d93c9 Issue #23842: os.major(), os.minor() and os.makedev() now support ints again. 2015-04-20 09:21:23 +03:00
Serhiy Storchaka
2098d61aab Issue #23098: 64-bit dev_t is now supported in the os module. 2015-01-18 11:11:25 +02:00
Serhiy Storchaka
0f8f784a77 Removed duplicated words in in comments and docs. 2014-12-01 18:16:30 +02:00
Benjamin Peterson
e373754056 don't segfault when trying to fdopen() a fd for a dir (closes #22259)
Patch from Brian Kearns.
2014-08-24 10:37:12 -05:00
Benjamin Peterson
7fc8a10577 add missing NULL check 2014-04-14 19:57:52 -04:00
Benjamin Peterson
5c863bf938 when an exception is raised in fdopen, never close the fd (changing on my mind on #21191) 2014-04-14 19:45:46 -04:00
Benjamin Peterson
02ab7a84ef make sure fdopen always closes the fd in error cases (closes #21191) 2014-04-09 15:40:18 -04:00
Georg Brandl
6d07641fce #13530: port to 2.7 branch (document what os.lseek returns). 2014-03-11 10:28:56 +01:00
Benjamin Peterson
2748c5c106 avoid name clash with posix_close (closes #20594) 2014-02-11 10:16:16 -05:00
Ned Deily
8074364f7a Issue #17557: Fix os.getgroups() to work with the modified behavior of
getgroups(2) on OS X 10.8.  Original patch by Mateusz Lenik.
2013-08-01 21:19:09 -07:00
Benjamin Peterson
d6138c426e always allow -1 as a uid 2013-03-23 16:19:04 -05:00
Benjamin Peterson
4d7fc3c5ac undo PyInt -> PyLong change; that was wrong 2013-03-23 15:35:24 -05:00
Benjamin Peterson
31289230e2 return int instead long when possible (#17531) 2013-03-23 15:22:20 -05:00
Serhiy Storchaka
da5c2a0646 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:27:53 +02:00
Serhiy Storchaka
46f5b35bc0 Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao. 2013-01-28 20:19:50 +02:00
Ronald Oussoren
1c60c7ac4c Issue #1602133: 'environ' is not really available with shared libraries on OSX
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.

Closes #1602133
2013-01-25 17:55:39 +01:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Trent Nelson
da4277a739 Issue #15765: Fix quirky NetBSD getcwd() behaviour.
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson
aee9dfba4a merge 2.6 with hash randomization fix 2012-02-20 21:44:56 -05:00
Barry Warsaw
1e13eb084f - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
  service attacks due to hash collisions within the dict and set types.  Patch
  by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Nadeem Vawda
d7664dee0c Issue #13781: Fix GzipFile to work with os.fdopen()'d file objects. 2012-01-19 00:40:46 +02:00
Charles-François Natali
93a1175bac Issue #13415: Test in configure if unsetenv() has a return value or not. 2011-11-27 13:01:35 +01:00
Benjamin Peterson
42d96dc07d no python objects to manage here 2011-11-22 23:56:06 -06:00