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

Christian Franke Christian.Franke@t-online.de
Sun Jun 3 16:09:00 GMT 2007


cygcheck is also affected by the same issue like strace:

$ cd /tmp

$ cygcheck ./ls
C:\cygwin\bin\ls.exe
...

$ cygcheck ././ls
ls - cannot open.


The attached patch fixes this for strace and cygcheck.
It does not fix the cygcheck issue reported by Brian.

All other calls to path.cc:cygpath() use absolute path names.
So it should not break anything to keep a leading "./".

2007-06-03  Christian Franke <franke@computer.org>

	* path.cc (cygpath): Don't remove leading "./" to avoid
	invalid application search in strace and cygcheck.


Christian

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin-1.5.24-2-path.patch.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20070603/f0cbf3a5/attachment.txt>


More information about the Cygwin-patches mailing list