delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/16/07:18:35

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: [workaround patch] cp filename FILENAME
16 Nov 1998 07:18:35 -0800 :
Message-ID: <19981116144912.24175.rocketmail.cygnus.cygwin32.developers@send1e.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: cygwin users <gnu-win32 AT cygnus DOT com>

---2131474914-1290326580-911227752=:22330
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've attached a workaround patch to cp.c from fileutils-3.16 which will correctly state that your copying to the same file regardless of case.

I've called this a workaround patch because the real fix needs to happen at the winsup level with the inode emulation; but, I'm not setup to fix the winsup source.  The fix should simply be to change the case of the string to be the same, similar to what I've done for cp.c, unless mixed case is on.

NOTE: If you are using the NTFS mixed case mode, don't apply this patch.

==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd AT yahoo DOT com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

---2131474914-1290326580-911227752=:22330
Content-Type: application/x-unknown-content-type-fma000_vim; name="cp.c.diff"
Content-Transfer-Encoding: base64
Content-Description: cp.c.diff
Content-Disposition: vi; filename="cp.c.diff"

LS0tIGNwLmMJU2F0IEphbiAyNSAyMzoyNjozMCAxOTk3DQorKysgY3AuYy5u
ZXcJTW9uIE5vdiAxNiAwOToyNzowNiAxOTk4DQpAQCAtNjA0LDcgKzYwNCwx
MSBAQA0KICAgY2hhciAqZHN0X2JhY2t1cCA9IE5VTEw7DQogICBpbnQgZml4
X21vZGUgPSAwOw0KIA0KKyNpZmRlZiBfX0NZR1dJTl9fDQorICBpZiAoKCp4
c3RhdCkgKF9zdHJsd3Ioc3JjX3BhdGgpLCAmc3JjX3NiKSkNCisjZWxzZQ0K
ICAgaWYgKCgqeHN0YXQpIChzcmNfcGF0aCwgJnNyY19zYikpDQorI2VuZGlm
DQogICAgIHsNCiAgICAgICBlcnJvciAoMCwgZXJybm8sICIlcyIsIHNyY19w
YXRoKTsNCiAgICAgICByZXR1cm4gMTsNCkBAIC02MzYsOCArNjQwLDEyIEBA
DQogDQogICBpZiAoIW5ld19kc3QpDQogICAgIHsNCisjaWZkZWYgX19DWUdX
SU5fXw0KKyAgICAgIGlmICgoKnhzdGF0KSAoX3N0cmx3cihkc3RfcGF0aCks
ICZkc3Rfc2IpKQ0KKyNlbHNlDQogICAgICAgaWYgKCgqeHN0YXQpIChkc3Rf
cGF0aCwgJmRzdF9zYikpDQotCXsNCisjZW5kaWYNCisgICAgew0KIAkgIGlm
IChlcnJubyAhPSBFTk9FTlQpDQogCSAgICB7DQogCSAgICAgIGVycm9yICgw
LCBlcnJubywgIiVzIiwgZHN0X3BhdGgpOw0K

---2131474914-1290326580-911227752=:22330--

- Raw text -


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