This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wrong/ inconsistent responses from diff

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
> 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:


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]