X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 22 Jul 2009 18:19:51 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [1.7] mount -m output can contain flag 'noexec', which isn't understood in /etc/fstab Message-ID: <20090722161951.GN27613@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4A673A27 DOT 1090700 AT dronecode DOT org DOT uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A673A27.1090700@dronecode.org.uk> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Jul 22 17:11, Jon TURNEY wrote: > > Jon AT byron ~ > $ mount -o noacl //necker/jon /home/jon > mount: warning - /home/jon does not exist. > mount: defaulting to '--no-executable' flag for speed since native path > references a remote share. Use '-f' option to override. > > Jon AT byron ~ > $ mount -m > //necker/jon /home/jon smbfs binary,noexec,noacl,user 0 0 > none /cygdrive cygdrive binary,posix=0,user 0 0 > > I want this to be permanent, so I edit /etc/fstab to add a copy of the line: > //necker/jon /home/jon smbfs binary,noexec,noacl,user 0 0 > close the window, and open another shell, which then says > > 3 [main] bash 3460 read_flags: invalid fstab option - 'noexec' > > (Curiously only a cmd.exe shell seems capable of showing this, MinTTY > doesn't which caused me some confusion initially) > > Editing /etc/fstab to use 'notexec' instead works as expected, although I > am not sure what is wrong here: the fstab parsing, the output of mount -m > or my expectations. > > I don't know what mount is referring to in it's output about the > '--no-executable' flag, that name doesn't seem to exist at all. That's a leftover from 1.5. "notexec" is right. "noexec" is a typo in two places in the code. I'll fix that. Thanks for the report, 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