X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 24 Aug 2010 21:24:43 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Wrong/ inconsistent responses from diff Message-ID: <20100824192443.GV6726@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> <20100824151641 DOT GT6726 AT calimero DOT vinschen DOT de> <538268579 DOT 20100824222434 AT mtu-net DOT ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <538268579.20100824222434@mtu-net.ru> 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 22:24, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > >> 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. > > As expected, not working. Huh? As expected, it's working. $ cat /etc/fstab none /mnt cygdrive binary,posix=0,user 0 0 $ mount C:/cygwin/bin on /usr/bin type ntfs (binary,auto) C:/cygwin/lib on /usr/lib type ntfs (binary,auto) C:/cygwin on / type ntfs (binary,auto) C: on /mnt/c type ntfs (binary,posix=0,user,noumount,auto) $ sed -ie 's#/mnt#/#' /etc/fstab $ cat /etc/fstab none / cygdrive binary,posix=0,user 0 0 $ mount -a $ mount C:/cygwin/bin on /usr/bin type ntfs (binary,auto) C:/cygwin/lib on /usr/lib type ntfs (binary,auto) C:/cygwin on / type ntfs (binary,auto) C: on /c type ntfs (binary,posix=0,user,noumount,auto) D: on /d type vfat (binary,posix=0,user,noumount,auto) Y: on /y type nfs (binary,posix=0,user,noumount,auto) So, did you call `mount -a' after changing /etc/fstab, or, alternatively, stop all Cygwin processes and restart them? 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