From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27655 invoked by alias); 11 Apr 2010 14:52:19 -0000 Received: (qmail 27647 invoked by uid 22791); 11 Apr 2010 14:52:18 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_LOW,TW_YG X-Spam-Check-By: sourceware.org Received: from mail11.tpgi.com.au (HELO mail11.tpgi.com.au) (203.12.160.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Apr 2010 14:52:13 +0000 X-TPG-Abuse: host=123-243-74-63.tpgi.com.au; ip=123.243.74.63; date=Mon, 12 Apr 2010 00:52:10 +1000; auth=+xHq3JwZYadZIHPPIIXj7mLD3QUfH+89GYY2HvrLPHs= Received: from [10.1.1.7] (123-243-74-63.tpgi.com.au [123.243.74.63]) (authenticated bits=0) by mail11.tpgi.com.au (envelope-from helium@shaddybaddah.name) (8.14.3/8.14.3) with ESMTP id o3BEq9ee013262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Apr 2010 00:52:10 +1000 Message-ID: <4BC1E212.9020207@shaddybaddah.name> Date: Sun, 11 Apr 2010 14:52:00 -0000 From: Shaddy Baddah User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: case-sensitivity in cygwin problems and their patches Content-Type: multipart/mixed; boundary="------------080404050900080500070002" X-IsSubscribed: yes 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 X-SW-Source: 2010-04/txt/msg00521.txt.bz2 --------------080404050900080500070002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1093 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 I encountered two issues, for which i have provided the attached patches: 1. I found that there were no links to hosts, network, etc.. in /etc. Looking through the log files and the base-files-mketc.sh script that is meant to create them, I found that the reason that these were not created was related to case-sensitivity against the system32 directory. In Windows 7 and Vista at least, this directory name is capitalised to System32. This means that the directory existence test fails on case sensitivity. The attached patch corrects this. 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. Hope that helps, Shaddy --------------080404050900080500070002 Content-Type: text/plain; name="base-files-3.9-3-sys32dir-patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="base-files-3.9-3-sys32dir-patch.diff" Content-length: 532 diff -x '*~' -urN ./base-files-3.9-3.orig/base-files-mketc.sh ./base-files-3.9-3/base-files-mketc.sh --- ./base-files-3.9-3.orig/base-files-mketc.sh 2010-04-11 14:09:42.044274900 +0000 +++ ./base-files-3.9-3/base-files-mketc.sh 2010-04-11 14:38:08.617885400 +0000 @@ -9,8 +9,8 @@ FILES="hosts protocols services networks" OSNAME="`/bin/uname -s`" -WINHOME="`/bin/cygpath -w -W`" -WINETC="$WINHOME\\system32\\drivers\\etc" +WINSYS32HOME="`/bin/cygpath -S -w`" +WINETC="$WINSYS32HOME\\drivers\\etc" if [ ! -d "$WINETC" ] then --------------080404050900080500070002 Content-Type: text/plain; name="openssh-5.4p1-1-sys32dir-patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="openssh-5.4p1-1-sys32dir-patch.diff" Content-length: 530 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=" #" --------------080404050900080500070002 Content-Type: text/plain; charset=us-ascii Content-length: 218 -- 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 --------------080404050900080500070002--