From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90378 invoked by alias); 16 Feb 2018 16:43:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 90351 invoked by uid 89); 16 Feb 2018 16:43:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=mobile X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 16 Feb 2018 16:43:54 +0000 Received: from perth.hirmke.de (aquarius.franken.de [193.175.24.89]) by mail-n.franken.de (Postfix) with ESMTP id 007FF721E280C for ; Fri, 16 Feb 2018 17:43:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by perth.hirmke.de (Postfix) with ESMTP id D0C28862763 for ; Fri, 16 Feb 2018 17:43:50 +0100 (CET) X-Spam-Score: -2.899 Received: from perth.hirmke.de ([127.0.0.1]) by localhost (perth.hirmke.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id V9xBxkkBIGEd for ; Fri, 16 Feb 2018 17:43:49 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by perth.hirmke.de (Postfix) with ESMTP id E629486275E for ; Fri, 16 Feb 2018 17:43:49 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id E1355A80576; Fri, 16 Feb 2018 17:43:49 +0100 (CET) Date: Fri, 16 Feb 2018 16:43:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygcheck failing to find file Message-ID: <20180216164349.GB3122@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-02/txt/msg00184.txt.bz2 --V0207lvV8h4k8FAm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1301 On Feb 15 14:58, Fergus Daly wrote: > I have an executable (created in Cygwin) located on a mobile drive D: >=20 > $ ls -al /cygdrive/d/src/sc.exe > -rwxr-xr-x 1 ferg dell 1426958 Jan 28 17:44 /cygdrive/d/src/sc.exe* > $ cygcheck /cygdrive/d/src/sc.exe > d:\src\sc.exe > D:\consoleX\bin\cygwin1.dll > C:\Windows\system32\KERNEL32.dll > # but it all works >=20 > Now omit the need for /cygdrive/ by writing /etc/fstab as > none / cygdrive binary 0 0 > and re-start Cygwin. >=20 > $ ls -al /d/src/sc.exe > -rwxr-xr-x 1 ferg dell 1426958 Jan 28 17:44 /d/src/sc.exe* > $ cygcheck /d/src/sc.exe > cygcheck: could not find '/d/src/sc.exe' >=20 > Why can't cygcheck find the file? > (Particularly, when ls can. And so can, say, md5sum.) Cygcheck is a native Windows executable and thus does not use Cygwin's path handling (in contrast to md5sum, for instance). Rather it uses a home grown version and this in turn has a bug when checking the cygdrive prefix against the incoming path. Everything goes, just not '/' alone. I pushed a fix and uploaded new developer snapshots to https://cygwin.de/snapshots/ Please give them a try. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --V0207lvV8h4k8FAm Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlqHCkUACgkQ9TYGna5E T6DM/hAAl+qPv5zLlCgTj1JgG8nqz05Jtve5xs9+pQLG68Wk9/2vkXBDRKi2TcRv UW2Ckhz+QuuryyWEDfHLSmsL23MkDwb4FNppmU2q5Bjc4U0/6PEaW6zd5hD4FGPm vha/gg8r3vwgxjK3sSqGYkPJZEh54cveNLsJxO/5guLjJPOb6cG2ihyB3ESk0lH1 Vfnc8qXrSS+mPPldImx9LQZ2BS36qoVnb+trAzjOsaGTs6aXqm2xd2uUTyFjDf9x wFxIrgK5iczgE5/iTGdPm11rnxUCzkG9HlLzrP/pCUQ7siBWwYxdXjRNmA/HPflC P/cx79IhzaNULEy3uk937bAbNV/3Tc4Tbw6POw+7xkBoxCdqj+09jX9KqMgK69mr rG2epMp4XmXpMfEhTvRNIInnJw9hLvQ8t6DJLwunjOgBJkzLU8cLie5CIFu3mjto KDt9gRBNt9baNxxU+5p7td+Iy/iXl9U6wjkN73w8DDsJwuhRWo3A8AkzC7jkdYPu sHuqC553+8w2OOhooMneQ/mt1i7hqomyLjm2mv3rinopuvjMc7ydBtxDTK7Lcu/H rvYZ25Dlf6XDwKXpOVYUHp/xJU7wuORAB5JN6TdaMJLbyLxBnWjoFJO8+peLJP4E YT+8kHwPuHLXuefN7a6xx0EhInfvYTbnM62xejcRHmRLs+kp0ME= =KPEc -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--