delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/10/22:55:24

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=yTUpiR/uz6cRxHZiyWRn0wf82g9w
hlAisYh11qpClTVbek/H90neizuURDJN2RrfC8aMGZF9mRX5p65+mA3jM2iJMyRL
oJVXzu2pZTbZgs3hxN2aB7A1JVogYpmQxvND5t6emLE4KfKQdNRTPVcU98atwp/g
svkARZya3n6BV4Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:cc:content-transfer-encoding:message-id
:references:to; s=default; bh=E7tC7T78yU0aEeO6Ich6YR7w8zE=; b=YW
1pObdTFtMKJZH3jZLEMM3m57v2IBYby/sCzQYBCzgUa/GDPeYaPBD7iQIluxsO0G
QevN12fwfPb90510ZCceQuqEQ0QXXCZQ21ghCPLcZBsztpSUGjK4lft9Sqiupt5Z
i7cWfyG/CDXY+jKDUIsWzAn7oIc1UgB9oSav6Z678=
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
Delivered-To: corinna-cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Greetings, downloads, Downloads, honor
X-Spam-User: qpsmtpd, 2 recipients
X-HELO: pv33p04im-asmtp002.me.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-01-11_03:,, signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1601110074
MIME-version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Subject: Re: Question about incorrect System path from cygpath with case-sensitivity enabled
From: Bryan Henry <bryanhenry AT mac DOT com>
In-reply-to: <20160107201938.GG20447@calimero.vinschen.de>
Date: Sun, 10 Jan 2016 22:54:30 -0500
Cc: corinna-cygwin AT cygwin DOT com
Message-id: <AC545912-3E03-4C1D-A294-6060F2168FA3@mac.com>
References: <B9C70902-5C7E-4AC6-A63A-583DCEC2771C AT mac DOT com> <1710491599 DOT 20160102183319 AT yandex DOT ru> <20160107201938 DOT GG20447 AT calimero DOT vinschen DOT de>
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u0B3tKKB029415

Hi Corinna,

Sorry for the delay getting back to you. I tested out the cygpath binary from the latest snapshot and confirmed that it fixes my issue. Thank for you making the change!

[~/Downloads/cygwin-inst-20160109]$ cygpath -W -u
/C/Windows
[~/Downloads/cygwin-inst-20160109]$ cygpath-old -W -u
/C/WINDOWS

- Bryan

> On Jan 7, 2016, at 3:19:38 PM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> 
> On Jan  2 18:33, Andrey Repin wrote:
>> 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.
> 
> ...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-casesensitive)
> 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
> 
> -- 
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Maintainer                 cygwin AT cygwin DOT com
> Red Hat


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