delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/31/13:40:33

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: 1.5.19-4 exec family of functions find wrong file to execute
Date: Tue, 31 Jan 2006 18:40:24 -0000
Message-ID: <000701c62695$cbf2d6f0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
In-Reply-To: <Pine.GSO.4.63.0601311242240.2407@access1.cims.nyu.edu>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT rainbow /test/exec> gcc test2.c -o test2
dk AT rainbow /test/exec> PATH=/usr/bin:.
dk AT rainbow /test/exec> test2 nopathnoext
NoPath
dk AT rainbow /test/exec> touch echo
dk AT rainbow /test/exec> ls -l echo
-rw-r--r--  1 dk Domain Users 0 Jan 31 18:32 echo
dk AT rainbow /test/exec> test2 nopathnoext
NoPath
dk AT rainbow /test/exec> PATH=.:/usr/bin
dk AT rainbow /test/exec> test2 nopathnoext
nopathnoext: Permission denied
dk AT rainbow /test/exec> rm -f echo
dk AT rainbow /test/exec> test2 nopathnoext
NoPath
dk AT rainbow /test/exec> echo garbage > echo
dk AT rainbow /test/exec> test2 nopathnoext
nopathnoext: Permission denied
dk AT rainbow /test/exec> ls -l echo
-rw-r--r--  1 dk Domain Users 8 Jan 31 18:33 echo
dk AT rainbow /test/exec> test2 nopathext
NoPathExt
dk AT rainbow /test/exec> test2 path
Usage: test2 nopathnoext|nopathext|pathnoext|pathext
dk AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019