X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: 1.5.19-4 exec family of functions find wrong file to execute
Date: Tue, 31 Jan 2006 11:04:35 -0000
Message-ID: <006501c62656$1f0f09c0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <20060130192233.14576.qmail@web30606.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 30 January 2006 19:23, Martin wrote:

> Any response?
> TIA
> --- 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
>> executable. 

>> 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.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

