This is the mail archive of the
cygwin
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 18:49:41 -0500 (EST)
- Subject: RE: 1.5.19-4 exec family of functions find wrong file to execute
It's not perfect. But I think you got the gist of it.
Thanks,
Martin
--- Dave Korn <dave.korn@artimi.com> wrote:
> On 31 January 2006 17:58, Igor Peshansky wrote:
>
>
> >> 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.
> >
> > Then you'll just have to run this under strace, and see why it
> selects
> > that file to execute. Igor
>
>
> I'll just add at this point that when I went back over the thread
> (looking for that cygcheck.out), I found your test case and
> can't exactly reproduce your results:
>
> dk@rainbow /test/exec> gcc test2.c -o test2
> dk@rainbow /test/exec> PATH=/usr/bin:.
> dk@rainbow /test/exec> test2 nopathnoext
> NoPath
> dk@rainbow /test/exec> touch echo
> dk@rainbow /test/exec> ls -l echo
> -rw-r--r-- 1 dk Domain Users 0 Jan 31 18:32 echo
> dk@rainbow /test/exec> test2 nopathnoext
> NoPath
> dk@rainbow /test/exec> PATH=.:/usr/bin
> dk@rainbow /test/exec> test2 nopathnoext
> nopathnoext: Permission denied
> dk@rainbow /test/exec> rm -f echo
> dk@rainbow /test/exec> test2 nopathnoext
> NoPath
> dk@rainbow /test/exec> echo garbage > echo
> dk@rainbow /test/exec> test2 nopathnoext
> nopathnoext: Permission denied
> dk@rainbow /test/exec> ls -l echo
> -rw-r--r-- 1 dk Domain Users 8 Jan 31 18:33 echo
> dk@rainbow /test/exec> test2 nopathext
> NoPathExt
> dk@rainbow /test/exec> test2 path
> Usage: test2 nopathnoext|nopathext|pathnoext|pathext
> dk@rainbow /test/exec>
>
>
> This is at least partly down to the fact that you either a) forged
> your results rather than cutting and pasting them or b)
> attached a different program from the one you actually used as a
> testcase when you sent your email!
>
>
> 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/
>
>
__________________________________________________________
Find your next car at http://autos.yahoo.ca
--
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/