Continue searching in PATH on ENODEV and ETIMEDOUT

Synchronize the error-handling logic from glibc. Users with networked
filesystems in their PATH may hit ETIMEDOUT.

https://bugzilla.gnome.org/show_bug.cgi?id=672201
This commit is contained in:
David Benjamin 2012-03-15 19:16:02 -04:00 committed by Colin Walters
parent cf912785b6
commit b0739f2223

View File

@ -1680,6 +1680,14 @@ g_execute (const gchar *file,
*/
break;
case ENODEV:
case ETIMEDOUT:
/* Some strange filesystems like AFS return even
* stranger error numbers. They cannot reasonably mean anything
* else so ignore those, too.
*/
break;
default:
/* Some other error means we found an executable file, but
* something went wrong executing it; return the error to our