[Python-checkins] r85309 - python/branches/py3k/Modules/getpath.c
victor.stinner
python-checkins at python.org
Fri Oct 8 00:42:51 CEST 2010
Author: victor.stinner
Date: Fri Oct 8 00:42:51 2010
New Revision: 85309
Log:
copy_absolute() raises a fatal error on _Py_wgetcwd() failure
Modified:
python/branches/py3k/Modules/getpath.c
Modified: python/branches/py3k/Modules/getpath.c
==============================================================================
--- python/branches/py3k/Modules/getpath.c (original)
+++ python/branches/py3k/Modules/getpath.c Fri Oct 8 00:42:51 2010
@@ -236,7 +236,8 @@
if (p[0] == SEP)
wcscpy(path, p);
else {
- _Py_wgetcwd(path, MAXPATHLEN);
+ if (!_Py_wgetcwd(path, MAXPATHLEN))
+ Py_FatalError("unable to get the current directory");
if (p[0] == '.' && p[1] == SEP)
p += 2;
joinpath(path, p);
More information about the Python-checkins
mailing list