X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=X6
	NPAJ1NNZzbY5eivEmBFG24M23TKOxUNRF4d47n109KpcYh32c6GYHcEid3UbEXQa
	mhocZN1lJ+6P1hTTr3ueMiarl/cFl791Fo8+wKNaTwPw5JIULmbx+xV99kHAvzhl
	uKxPWsmRdg3oQKXDN3a6Xce+Ec2cdiHc8Ib+2Mglk=
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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=Z8SmV+0/
	bYHDCUVIVfNZ+lm8dro=; b=ncU9ZCQYCwlsSW/7kcscpydVcyX0pRrhEpaGbQQ4
	26+Ao78EfE5+U6TXMSD3P4/EvQgl0k/0RRKHOhz0zrkoz7IlhGCpbfM/TADl1Pkr
	Oib6QrIvfigE601KZB6nNX/e9qUmVxySj3ebN0vhXeCXRkcIrn4ly3JRaz+FrSJx
	ud8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.180.189.102 with SMTP id gh6mr2148042wic.19.1372905182951; Wed, 03 Jul 2013 19:33:02 -0700 (PDT)
In-Reply-To: <51D4A7F4.80507@cwilson.fastmail.fm>
References: <CABEPuQ+jEFJEQt=MGyn5m7Q+Ccs5A-i7vkk0McM=yyoCOw+Kgw@mail.gmail.com>	<20130703181504.GA3182@ednor.casa.cgf.cx>	<CABEPuQLW+TQ5VUVSYrCOzQ4Y5fdHNp=ymcb9r+xV7ROyYS=OBA@mail.gmail.com>	<20130703195020.GC1705@calimero.vinschen.de>	<51D49188.7000708@cwilson.fastmail.fm>	<20130703215716.GA1752@ednor.casa.cgf.cx>	<51D4A7F4.80507@cwilson.fastmail.fm>
Date: Thu, 4 Jul 2013 06:33:02 +0400
Message-ID: <CABEPuQJ6V55nLo1hHO=xxAjjxsV5ahAuHj-jfWH-=Hk_hmk-eA@mail.gmail.com>
Subject: Re: MSYS mode (continue)
From: Alexey Pavlov <alexpux@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1

My opinion is to extend Cygwin parser to read msys-like mounts. It's
very simple:

--- mount.cc 2013-04-24 20:29:29.000000000 +0400
+++ Cygwin/winsup/cygwin/mount.cc 2013-06-13 09:35:01.479492100 +0400
@@ -1125,8 +1118,17 @@
   if (!*c)
     return true;
   cend = find_ws (c);
-  *cend = '\0';
   posix_path = conv_fstab_spaces (c);
+  if (!*cend)
+   {
+     unsigned mount_flags = MOUNT_SYSTEM | MOUNT_BINARY |
MOUNT_NOPOSIX | MOUNT_NOACL;
+
+     int res = mount_table->add_item (native_path, posix_path, mount_flags);
+     if (res && get_errno () == EMFILE)
+       return false;
+     return true;
+   }
+  *cend = '\0';
   /* Third field: FS type. */
   c = skip_ws (cend + 1);
   if (!*c)


Regards,
Alexey.

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

