(original) (raw)

changeset: 99478:8bf69413ec01 parent: 99475:50a99be891bc parent: 99477:e9bf5803b716 user: Martin Panter vadmium+py@gmail.com date: Sun Dec 06 11:19:31 2015 +0000 description: Issue #25717: Merge comment from 3.5 diff -r 50a99be891bc -r 8bf69413ec01 Modules/_io/fileio.c --- a/Modules/_io/fileio.c Sat Dec 05 23:57:55 2015 -0500 +++ b/Modules/_io/fileio.c Sun Dec 06 11:19:31 2015 +0000 @@ -443,6 +443,9 @@ fstat_result = _Py_fstat_noraise(self->fd, &fdfstat); Py_END_ALLOW_THREADS if (fstat_result < 0) { + /* Tolerate fstat() errors other than EBADF. See Issue #25717, where + an anonymous file on a Virtual Box shared folder filesystem would + raise ENOENT. */ #ifdef MS_WINDOWS if (GetLastError() == ERROR_INVALID_HANDLE) { PyErr_SetFromWindowsErr(0); /vadmium+py@gmail.com