This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygcheck bug: symlinks with unix paths are wrongly resolved


Hi,

I believe there is a bug in the cygcheck I have.

As@dstar ~
$ which cmd.exe
/cygdrive/d/WINDOWS/system32/cmd.exe

As@dstar ~
$ ln -s `which cmd.exe` cmd.exe

As@dstar ~
$ cygcheck ./cmd.exe
 -> D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe
cygcheck: could not find './cmd.exe'

>D:\OTHERBIN\cygwin is where CYGWIN installed, it has no relation to
>where cmd resides. It makes this a bug, not missed feature.

As@dstar ~
$ ./cmd.exe /C echo test
test

As@dstar ~
$ ln -s d:\\windows\\system32\\cmd.exe cmd1.exe

As@dstar ~
$ cygcheck ./cmd1.exe
 -> d:\windows\system32\cmd.exe
d:\windows\system32\cmd.exe
  D:\WINDOWS\system32\KERNEL32.dll
    D:\WINDOWS\system32\ntdll.dll
  D:\WINDOWS\system32\msvcrt.dll
  D:\WINDOWS\system32\USER32.dll
    D:\WINDOWS\system32\GDI32.dll

As@dstar ~
$ uname -a
CYGWIN_NT-5.1 dstar 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin

As@dstar ~
$ cygcheck -V
cygcheck version 1.123
System Checker for Cygwin
Copyright (C) 1998 - 2008 Red Hat, Inc.
Compiled on Aug 16 2010

-- 
Arseny



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]