delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/13/09:12:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=gjx0
m2wxlq/sd1dDFH7OHpcuadNYU4iMDkaQJ9vGqfPjxwZzdWBumRhKQ6p7KoZfC76m
6BENWRq3BGM9oTRr3yuX3lE4PowODcGviMa1/lf4c0feKz/Lae3PwxMmMfKLYx7A
A2SkJoMqRIEUkPOqR8OrClxu8WuVw0IuD2EDnxg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=a2kGE3odYp
NxTPfXgwWWK1YdavI=; b=ojS3lCkkC3bQ10+6c3YyiVfsS03YP/52TjMWIajqBa
3KGNWgt0yXS+6cvU6IerGAaRZ2YTX6ZXL2xMmpd6+MXTsfOu8J3W99QlhFzM9AYx
/y8zzAHOddmcLj0HKjHhnVMhXAFh9iq3vFypBL2atFMd4ASM4CJdOUnH8tiH3nuH
k=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:CACmJb3, cygwin64, H*i:sk:CACmJb3, H*f:sk:7R_rq8B
X-HELO: earth.ccil.org
Date: Wed, 13 Apr 2016 09:11:28 -0400
From: John Cowan <cowan AT mercury DOT ccil DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Conflict between Cygwin 1.7 and Ubuntu for Windows 14316
Message-ID: <20160413131128.GA3162@mercury.ccil.org>
References: <20160413052257 DOT GB28803 AT mercury DOT ccil DOT org> <CA+Fg1xY46ANusM1MeZozkQ1u0+AHwd=vJDoWo7867az3wxPNBQ AT mail DOT gmail DOT com> <CACmJb3yHO_VhiDoyn33d+7R_rq8Bqco6VMuTdG622Bu2u52fHA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CACmJb3yHO_VhiDoyn33d+7R_rq8Bqco6VMuTdG622Bu2u52fHA@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes

LLoyd scripsit:

> John, if you can confirm?

Exactly right.

> Please also provide the "cat /mnt/c/file1" and "cat /mnt/c/file2" from UoW.

From the Cygwin shell (note that my Cygwin and Windows home directories
are the same: /home/cowan is a Cygwin symlink to /cygdrive/c/Users/cowan):

cowan AT large-skunk ~
$ echo stuff >file1

cowan AT large-skunk ~
$ cat file1
stuff

cowan AT large-skunk ~
$ ls -l file1
-rw-r--r--+ 1 cowan cowan 6 Apr 13 08:57 file1

From cmd.exe:

c:\Users\cowan>echo stuff >file2

c:\Users\cowan>type file2
stuff

From UoW bash prompt:

root AT localhost:~# cd /mnt/c/Users/cowan
root AT localhost:/mnt/c/Users/cowan# cat file1
cat: file1: Permission denied
root AT localhost:/mnt/c/Users/cowan# cat file2
stuff
root AT localhost:/mnt/c/Users/cowan# ls -l file1 file2
-rwxrwxrwx 1 root root 6 Apr 13 12:57 file1
-rwxrwxrwx 1 root root 8 Apr 13 12:57 file2

As you can see, they look exactly the same but are different somehow.
What is more, if I use cmd.exe echo to append to file1 and Cygwin echo
to append to file2, it changes nothing.  Likewise, if I overwrite them
completely, it changes nothing.  Only if I remove them and re-create
them from the "wrong" side does file1 become readable and file2 become
unreadable.

This is 64-bit Windows on an NTFS file system, but 32-bit Cygwin.  I'll
try installing Cygwin64 tonight and seeing if that makes any difference.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan AT ccil DOT org
A: "Spiro conjectures Ex-Lax."
Q: "What does Pat Nixon frost her cakes with?"
  --"Jeopardy" for generative semanticists

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