[Patch] "strace ./app.exe" probably runs application from /bin

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Mon Jun 4 02:05:00 GMT 2007

On Sat, Jun 02, 2007 at 04:28:34PM -0700, Brian Dessent wrote:
>Christopher Faylor wrote:
>> Let me rephrase the problem:
>> "cygpath does not properly deal with the current directory"
>> Thanks for the patch but we won't be applying it in this form.
>I've been meaning to take a look at fixing this myself, because I'm
>tired of:
>$ cd /usr/bin
>$ cygcheck ./ls
>.\.\.\.\ - Cannot open
>$ cygcheck ls
> - Cannot open
>Error: could not find ls
>$ cygcheck ls.exe
> - Cannot open
>Error: could not find ls.exe
>$ cygcheck ./ls.exe
>  .\cygwin1.dll
>    C:\WINXP\system32\ADVAPI32.DLL
>      C:\WINXP\system32\ntdll.dll
>      C:\WINXP\system32\KERNEL32.dll
>      C:\WINXP\system32\RPCRT4.dll
>  .\cygintl-8.dll
>    .\cygiconv-2.dll

I just checked in a change which modified path.cc to try to deal with
relative paths.  That should fix the reported strace.exe problem.  I
also severely hacked at cygcheck.cc to try to fix the above behavior
(it's annoyed me in the past too).

I'm not 100% sure that I got every corner case right, though, so please
check it out and report any problems to the cygwin mailing list.  The
latest snapshot has these changes.


More information about the Cygwin-patches mailing list