This is the mail archive of the
mailing list for the Cygwin project.
RE: 1.5.19-4 exec family of functions find wrong file to execute
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 31 Jan 2006 11:04:35 -0000
- Subject: RE: 1.5.19-4 exec family of functions find wrong file to execute
On 30 January 2006 19:23, Martin wrote:
> Any response?
> --- Martin <linkscrazy@yahoo.!> wrote:
>> I am attempting to invoke a command with execvp/execlp. If a file
>> appears in my PATH before the executable desired and has the same name
>> as the executable, the first occurrence of the file name is used as
>> the executable to invoke. Even though the first file is NOT marked as
>> Is this normal behavior for execlp/execvp?
>> Shouldn't the execution permission be set in order to execute it?
Depends on your mountpoints. If the file is found under a mountpoint with the cygexec flag set, it will be assumed to be
executable regardless of the x bit in the file's perms.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html