From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28934 invoked by alias); 2 Jan 2016 15:35:20 -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 28916 invoked by uid 89); 2 Jan 2016 15:35:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*F:D*yandex.ru, luck X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 02 Jan 2016 15:35:16 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1aFOCy-0005Tu-Ty ; Sat, 02 Jan 2016 18:35:09 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 02 Jan 2016 15:33:19 -0000 Date: Sat, 02 Jan 2016 15:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1710491599.20160102183319@yandex.ru> To: Bryan Henry , cygwin@cygwin.com Subject: Re: Question about incorrect System path from cygpath with case-sensitivity enabled In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00006.txt.bz2 Greetings, Bryan Henry! > 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-casesensitive > 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: > 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=1 > Since this was an existing installation, that postinstall script failing > isn't a big deal since the symlinks that it would normally create already > 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 trying > "/usr/bin/cygpath -S -u" for myself, I see now why it failed: > [~]$ 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 > 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", cygpath uses system calls to return the directories you're asking for. If a system call return wrong case, cygpath can't do anything to amend it. You have to fix your system first, then it will just work. > which is of course important in my case with case sensitivity > enabled. The problem is that you have it enabled. Windows was not built with this setting in mind. Very little amount of native Windows programs would expect it to be enabled. > I'm not sure if this is a failure of cygpath directly or perhaps a > piece of configuration elsewhere that needs to get updated in addition to > the registry key change mentioned in the FAQ. Can anyone offer any > recommendations to fix the Windows path returned by cygpath, or is this a bug? You have to also change all registry keys containing mismatched paths. Good luck. -- With best regards, Andrey Repin Saturday, January 2, 2016 18:29:45 Sorry for my terrible english... -- 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