From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91409 invoked by alias); 13 Sep 2015 16:10:56 -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 91398 invoked by uid 89); 13 Sep 2015 16:10:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Sep 2015 16:10:51 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id t8DGAnXB030522 for ; Sun, 13 Sep 2015 12:10:50 -0400 Received: from [192.168.1.7] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id t8DGAmU5019491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 13 Sep 2015 12:10:49 -0400 Subject: Re: Fonts reorganization and additions To: cygwin@cygwin.com References: <1441962346.9784.34.camel@cygwin.com> <55F2B932.8060101@gmail.com> <55F30150.8020906@cornell.edu> <1441989600.15240.4.camel@cygwin.com> <55F327B4.40208@cornell.edu> <1442001550.9548.6.camel@cygwin.com> From: Ken Brown Message-ID: <55F5A008.80308@cornell.edu> Date: Sun, 13 Sep 2015 16:10:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1442001550.9548.6.camel@cygwin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00216.txt.bz2 On 9/11/2015 3:59 PM, Yaakov Selkowitz wrote: > The first thing that should be checked is if the code in setup which > allows it to unpack files with "illegal" characters in Windows also > makes sure to create parent directories. Based on these reports my > *guess* is it doesn't but I haven't looked yet. I'm not very familiar with the setup code, but I think I may have found the problem. The function mkdir_p() in mkdir.cc contains the following, starting at line 99: for (c = path; *c; c++) { if (*c == ':') slash = 0; if (*c == '/' || *c == '\\') slash = c; } if (!slash) return 0; If I understand this correctly, the function will return success without having created the leading directory if the path name contains a colon and doesn't contain a slash after the last colon. I guess the assumption is that there is no "leading directory" to be created in this case. [This part of the code was written in 2000, when a colon could not be part of a file name.] I hope someone who understands the setup code better than I do can take a look at this. I'm not confident that I understand all the uses of mkdir_p() or all possible reasons why its in_path argument might contain a colon. Ken -- 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