Opened 5 years ago

Closed 5 years ago

#308 closed defect (fixed)

__spawnvpe() and interperter search

Reported by: komh 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 komh 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by komh

comment:1 Changed 5 years ago by bird

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

comment:2 Changed 5 years ago by bird

  • Component changed from libc to libc-backend
  • Milestone changed from libc-0.7 to libc-0.6.6
  • Resolution set to fixed
  • Status changed from new to closed

Forwardported to trunk in r3904.

Note: See TracTickets for help on using tickets.