X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 24 Aug 2010 17:16:41 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Wrong/ inconsistent responses from diff Message-ID: <20100824151641.GT6726@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4C73C53C DOT 7060004 AT bonhard DOT uklinux DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4C73C53C.7060004@bonhard.uklinux.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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 Aug 24 14:12, Fergus wrote: > >> Would you mind to paste the file content of /etc/fstab and, if it > >> exists, /etc/fstab.d/$USER into your reply? > > > Oh and, btw., could you please test if this still occurs with the > > latest developer snapshot from http://cygwin.com/snapshots/ > > Thanks as usual for taking an interest and trying to help with this. > > I have identified where the strange behaviour is induced on my system: > > ~> mount -p > Prefix Type Flags > /cygdrive user binmode > ~> mount -c "/" > ~> mount -p > Prefix Type Flags > / user textmode > > The change from binmode to textmode seems to be induced by the > command mount -c "/" [...] Found it. The method to compute the mount flags from the options given to the mount(1) command have been changed and accidentally the default is 0, instead of MOUNT_BINARY. Fixed in CVS. For the time being, the workaround is to set the mount option explicitely: mount -o binary,... -c / or, which is much less error-prone in the long run, to create a cygdrive mount in /etc/fstab. > Here is where it gets awkward: I don't have a /etc/fstab or > /etc/fstab.d/$USER. I think I never had the latter and lost the > former at some point. Since it's auto-generated, you must have deleted it. > Not having it, didn't seem to matter. And, > sorry, I can't even remember what it's for: That's what a User's Guide is for: http://cygwin.com/cygwin-ug-net/using.html#mount-table Thanks, 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