Opened 10 years ago

Closed 10 years ago

#308 closed defect (fixed)

__spawnvpe() and interperter search

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.6.6
Component: libc-backend Version: 0.6.5
Severity: normal Keywords:
Cc:

Description

Hi/2.

Current __spawnvpe() searches a interpreter in this order.

interpreter_path
interpreter_name in PATH
interpreter_name + .exe in PATH

But, interpreter_path + .exe should be also searched before searching name in PATH.

Finally, I think, an exe file should be prefered to a non-exe file. Any idea ?

Attachments (1)

__spawnvpe.diff (1.4 KB) - added by KO Myung-Hun 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by KO Myung-Hun

Attachment: __spawnvpe.diff added

comment:1 Changed 10 years ago by bird

Fixing it the same way as #180, by using the new _path2 function. r3903 on the branch.

comment:2 Changed 10 years ago by bird

Component: libclibc-backend
Milestone: libc-0.7libc-0.6.6
Resolution: fixed
Status: newclosed

Forwardported to trunk in r3904.

Note: See TracTickets for help on using tickets.