delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/11/11:05:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 11 Apr 2010 17:05:37 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: case-sensitivity in cygwin problems and their patches
Message-ID: <20100411150537.GS28908@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4BC1E212 DOT 9020207 AT shaddybaddah DOT name>
MIME-Version: 1.0
In-Reply-To: <4BC1E212.9020207@shaddybaddah.name>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Apr 11 14:52, Shaddy Baddah wrote:
> Hi,
> 
> As some may recall from a previous thread of mine, i turned on
> case-sensitivity in Windows + cygwin, as per:
> 
> http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive
> [...]
> 2. I also found that the ssh-host-config script will have a
> non-fatal error when it tries to create a temporary mount to the
> drivers/etc subdirectory under System32 because of the same
> case-sensitivity issues. The attached patch also corrects this using
> the same utilisation of cygpath -S to get the System32 path.
> [...]
> diff -x '*~' -urN ./openssh-5.4p1-1.orig/ssh-host-config ./openssh-5.4p1-1/ssh-host-config
> --- ./openssh-5.4p1-1.orig/ssh-host-config	2010-04-11 13:47:56.576606400 +0000
> +++ ./openssh-5.4p1-1/ssh-host-config	2010-04-11 13:51:10.300686800 +0000
> @@ -78,7 +78,7 @@
>  
>    if csih_is_nt
>    then
> -    _win_etcdir="${SYSTEMROOT}\\system32\\drivers\\etc"
> +    _win_etcdir="$(cygpath -S -w)\\drivers\\etc"
>      _services="${_my_etcdir}/services"
>      # On NT, 27 spaces, no space after the hash
>      _spaces="                           #"

This will be fixed differently in the ssh-host-config script in the
upcoming OpenSSH 5.5p1.  Instead of using cygpath to get the exact
correct case for the drivers/etc dir, it uses relaxed mount options.
The patch is already upstream for a couple of days.  Since 5.5p1
is due really soon now, I was too lazy to release an interim 5.4p1-2.


Index: contrib/cygwin/ssh-host-config
===================================================================
RCS file: /cvs/openssh/contrib/cygwin/ssh-host-config,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -p -r1.28 -r1.29
--- contrib/cygwin/ssh-host-config      12 Jul 2009 11:58:42 -0000      1.28
+++ contrib/cygwin/ssh-host-config      24 Mar 2010 02:03:32 -0000      1.29
@@ -90,7 +90,7 @@ update_services_file() {
   fi
   _serv_tmp="${_my_etcdir}/srv.out.$$"
 
-  mount -o text -f "${_win_etcdir}" "${_my_etcdir}"
+  mount -o text,posix=0,noacl -f "${_win_etcdir}" "${_my_etcdir}"
 
   # Depends on the above mount
   _wservices=`cygpath -w "${_services}"`


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          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