delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/19/19:18:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=BAYES_50,KAM_THEBAT,SPF_HELO_PASS,TW_YG
X-Spam-Check-By: sourceware.org
Date: Wed, 20 Oct 2010 10:17:25 +1100
From: Arseny Slobodyuk <ampy AT users DOT sourceforge DOT net>
Reply-To: Arseny Slobodyuk <ampy AT users DOT sourceforge DOT net>
Message-ID: <1078952009.20101020101725@ich.dvo.ru>
To: cygwin AT cygwin DOT com
Subject: cygcheck bug: symlinks with unix paths are wrongly resolved
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi,

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

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

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

As AT 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 AT dstar ~
$ ./cmd.exe /C echo test
test

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

As AT 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 AT dstar ~
$ uname -a
CYGWIN_NT-5.1 dstar 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin

As AT 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

- Raw text -


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