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: Martin <linkscrazy at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 31 Jan 2006 11:23:07 -0500 (EST)
- Subject: RE: 1.5.19-4 exec family of functions find wrong file to execute
In response to your comments:
I ran the testcase from ~/testcases directory. I believe my cygwin.out
file indicates /home is mounted from D:\home (HOME=/home/test). Also,
D: is NTFS. Also, there is nothing special about mount point (no -x
flag was used). This is all shown in cygwin.out.
--- Igor Peshansky <email@example.com> wrote:
> On Tue, 31 Jan 2006, Dave Korn wrote:
> > 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
> > >> 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
> > >> 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
> > Depends on your mountpoints. If the file is found under a
> > with the cygexec flag set, it will be assumed to be executable
> > regardless of the x bit in the file's perms.
> Also, on FAT filesystems, there are no permission bits[*]... Your
> may be tripping the executable file detection heuristics, though.
> [*] Cygwin can simulate them for you on pure FAT with "ntea", but
> FAT32 you're SOL.
> |\ _,,,---,,_ firstname.lastname@example.org |
> ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
> |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
> '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
> "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends
> "But no -- you are no fool; you call yourself a fool, there's proof
> enough in
> that!" -- Rostand, "Cyrano de Bergerac"
> 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/
Find your next car at http://autos.yahoo.ca
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html