]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport:
authorGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 16:36:59 +0000 (16:36 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 16:36:59 +0000 (16:36 +0000)
commit10c7ab740cfe7ba24158a76fe7354dc6e67f9f8f
treec1f03b499f94ef3b202cd43cb42261598ff19ef6
parent84bd5a7b354fdc3e0a2b11b90495dc953087722c
Backport:

Fix for SF bug 601077 by Zack Weinberg.

The new execvpe code would sometimes do the wrong thing when a
non-executable file existed earlier in the path and an executable file
of the same name existed later in the path.  This patch restores the
proper behavior (which is to execute the second file).  When only a
non-executable file exists, the correct error is still reported.
Lib/os.py