delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/09/19:51:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F0B8B5C.5050907@redhat.com>
Date: Mon, 09 Jan 2012 17:50:36 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0
MIME-Version: 1.0
To: "Linda Walsh <cygwin AT tlinx DOT org" <coreutils AT tlinx DOT org>
CC: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: bug#10468: BUG: Severe or critical - deletes existing files and leaves nothing. (cp)
References: <4F0B59EF DOT 7080204 AT tlinx DOT org> <4F0B5F02 DOT 3030700 AT redhat DOT com> <4F0B81DD DOT 1080308 AT tlinx DOT org>
In-Reply-To: <4F0B81DD.1080308@tlinx.org>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
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

--------------enig5C3A5467B9E6ED823C934DB9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

[dropping coreutils, and trimming content]

On 01/09/2012 05:10 PM, Linda Walsh <cygwin AT tlinx.org wrote:
>>> ok, at this point, I would consider it 'my bad, for using cp on
>>>  windows (it used to work without these issues, not sure what has
>>> changed)...
>>
>> The problem is not in coreutils, but in your operating system's
>> limitations,
> ---
> Can you read?

Yes, and I'm trying to set up my system to see if I can reproduce your
report (I normally run my windows box case-sensitive, so I have to
reboot before I can test your case, so it may be a while before I have a
definitive answer).

> I'm saying I DIDN'T ask it to copy links... so it should simple copied
> case variations multiple times to the same target "dumbly" (like it used
> to).
>=20
> Now it's "smarter"[sic]. and tries to copy links even when not told
> to preserve links.

There is definitely a possibility that one of my cygwin-specific patches
to cp may have introduced a bug; I will double check that code to see if
I might have broken things.  What is the last version of 'cp' that you
used in cygwin that did what you wanted, in case it was a recent
regression on my part?

>=20
> Can you explain why case insensitivity in the target would cause it
> to 'preserve links' when not told to?

This could also be an issue in cygwin1.dll itself; affecting more than
just cp, but to know that for sure, we need a reproducible test case.
It would help if you could minimize things down to as few files as
possible (shell steps to create a single directory with two hard-linked
names on the source, rather than making us guess at the entire contents
of the entire fonts hierarchy that you originally noticed the issue on).

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig5C3A5467B9E6ED823C934DB9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPC4tcAAoJEKeha0olJ0Nq6VAH/0Uw2MDtl7np4Juzz6ZYSX66
AxM8rhjQlM/+kNEiKJt80KcTpjqdWcuPKDq+eqZvdAiheND5n0qOY262KYHinAhX
qCt6dzkcr+2l9CUnj7yarReEODZlfqDwfwlStUjilUs4y2bH+5iYmt0KhYsc0Cv9
huSZB/sKc5YDX98/U4hnzq55vxqnwjfCJA/82eXlVZI2iOUmUISTkBAJTFKYhZDw
8pqyOeiT8pkPGHzxEEQt6iXQjNQHwDtoaDJJwRE+pSGFDPu7xSIOTs5je3HZKSha
jrLy7oMhVRhOMSTL1ZueMzvtvxLlwNdzOkc6usj0qlvDveInvxuoM9tSoixvZyY=
=01pQ
-----END PGP SIGNATURE-----

--------------enig5C3A5467B9E6ED823C934DB9--

- Raw text -


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