X-Spam-Check-By: sourceware.org From: "Dave Korn" To: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/