delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/24/15:24:58

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 <corinna-cygwin AT cygwin DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019