From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28661 invoked by alias); 4 Jul 2013 02:33:07 -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 28651 invoked by uid 89); 4 Jul 2013 02:33:06 -0000 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 Received: from mail-wg0-f52.google.com (HELO mail-wg0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 04 Jul 2013 02:33:05 +0000 Received: by mail-wg0-f52.google.com with SMTP id b12so678431wgh.31 for ; Wed, 03 Jul 2013 19:33:03 -0700 (PDT) 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) Received: by 10.216.72.66 with HTTP; Wed, 3 Jul 2013 19:33:02 -0700 (PDT) In-Reply-To: <51D4A7F4.80507@cwilson.fastmail.fm> References: <20130703181504.GA3182@ednor.casa.cgf.cx> <20130703195020.GC1705@calimero.vinschen.de> <51D49188.7000708@cwilson.fastmail.fm> <20130703215716.GA1752@ednor.casa.cgf.cx> <51D4A7F4.80507@cwilson.fastmail.fm> Date: Thu, 04 Jul 2013 02:33:00 -0000 Message-ID: Subject: Re: MSYS mode (continue) From: Alexey Pavlov To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-07/txt/msg00072.txt.bz2 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