From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118431 invoked by alias); 7 Jan 2016 20:19:42 -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 118390 invoked by uid 89); 7 Jan 2016 20:19:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-102.3 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=Maintainer, DOT, honor, Greetings X-HELO: calimero.vinschen.de Received: from ipbcc02fe8.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.47.232) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Jan 2016 20:19:40 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8027EA80460; Thu, 7 Jan 2016 21:19:38 +0100 (CET) Date: Fri, 08 Jan 2016 02:14:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Bryan Henry Subject: Re: Question about incorrect System path from cygpath with case-sensitivity enabled Message-ID: <20160107201938.GG20447@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Bryan Henry References: <1710491599.20160102183319@yandex.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gvF4niNJ+uBMJnEh" Content-Disposition: inline In-Reply-To: <1710491599.20160102183319@yandex.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-01/txt/msg00070.txt.bz2 --gvF4niNJ+uBMJnEh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2753 On Jan 2 18:33, Andrey Repin wrote: > Greetings, Bryan Henry! >=20 > > I enabled (some time ago, not recently) case sensitivity on my Windows = 8.1 > > system by setting the registry key mentioned in the FAQ here: > > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-case= sensitive >=20 > > Today, I updated Cygwin and noticed a message about a failed postinstall > > script at the end. Here's the excerpt from setup.log.full showing > > /etc/postinstall/base-files-mketc.sh exiting early: >=20 > > 2016/01/01 15:45:32 running: C:\cygwin\bin\bash.exe --norc --noprofile > > "/etc/postinstall/base-files-mketc.sh" > > Directory /C/WINDOWS/System32/drivers/etc does not exist; exiting > > If directory name is garbage you need to update your cygwin package > > 2016/01/01 15:45:32 abnormal exit: exit code=3D1 >=20 > > Since this was an existing installation, that postinstall script failing > > isn't a big deal since the symlinks that it would normally create alrea= dy > > exist, but I wanted to dig into why it's failing in the first place in = case > > it is a symptom of something bigger. Taking a look at that script and t= rying > > "/usr/bin/cygpath -S -u" for myself, I see now why it failed: >=20 > > [~]$ cygpath -S -u > > /C/WINDOWS/System32 > > [~]$ file `cygpath -S -u` > > /C/WINDOWS/System32: cannot open `/C/WINDOWS/System32' (No such file or= directory) > > [~]$ file /C/Windows/System32 > > /C/Windows/System32: directory >=20 > > I get similar results from "cygpath -W". It seems that cygpath has not > > picked up on the fact that the directory is really "Windows" and not > > "WINDOWS", >=20 > cygpath uses system calls to return the directories you're asking for. ...and those system calls return information which does not honor case-sensitivity, unfortunately. > If a system call return wrong case, cygpath can't do anything to amend it. It can and it will, at least if the path is a local path. I just applied a patch to cygpath to call another OS function to correct the case of the path returned by GetSystemDirectory and friends. > You have to fix your system first, then it will just work. This is nonsense. It's not the user's fault that the OS returns paths without honoring the case. Cygwin tries to support case-sensitivity (https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesen= sitive) and so it makes a lot of sense if cygpath tries to return system paths using the correct case. I just uploaded new developer snapshots to https://cygwin.com/snapshots/ Please give cygpath from those snapshots a try. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --gvF4niNJ+uBMJnEh Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWjshaAAoJEPU2Bp2uRE+gibEP/16O98eF3IUfRxeiqDYL1bfC 5KNTlAc/I36azJhfMUyVyqPY+7yp0PwRLGvmmGzF8a0Y3pzjMbISuSeAYm3hmMQ8 oMv4s+wB2f0Kx+8RK5paT/GCdi4PR1awde3+XJfCR6Z3vkzMESfdDr5759KiqKWA N5EAmyvEvXZ7E7cfjtHE/704MF3kY7lv5CUI5kT1Y3HJ3k+gcsqN6eCTssJfeN+4 wJ8ShUI99kA+qsG7uIA6L+23+Q+X6kXRXo3gYP5i3XPv3n0GwtP0SeYSVhG4Geqq f+cXWS8WsLvIJjJCjStz91LsHpKrejQsn8PphXo8X4AmAHZYx+WMPaytuNFkGAbb xP0+KERkw/zEkr6T7SJOruZ9gG3Dhm0IrdchHNG1LvhYVoqb23jXOGRbfLc67nRE Kp6IhSwZ07j3OCZLHsdsMPODYLIBhBWlAhek/Y9Rl+8oU/+hbxFJE+OoS5JMGSWF B+WFvAu54JOGiOjMZzqIBmsd2BqWqzkxZ/Ve86pp0gaiAzTwQFGJNpgvNdulPtpI +sN3rD5p7e4CRi+6g41FOjpadivEBo/OAzWvfgcG33jEiTeQ+b3giUXIMckOX42M 9DhJd7IaDTh7jw/BmW04OZdCf2mnl+BjKeA9wuxt3nB+WvfJuTwJI1HuhS2sfE0c twcDXBTjdPksSaiBXV+R =Uogk -----END PGP SIGNATURE----- --gvF4niNJ+uBMJnEh--