delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/05/06:44:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Received-SPF: none receiver=mailfe08.swip.net; client-ip=188.155.175.201; envelope-from=vmail AT mycircuit DOT org
Message-ID: <4AF2BA7A.6030807@mycircuit.org>
Date: Thu, 05 Nov 2009 12:43:54 +0100
From: Peter <vmail AT mycircuit DOT org>
User-Agent: Thunderbird 2.0.0.23 (X11/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: rsync appends .exe extension
References: <4AF1E7E5 DOT 8080104 AT mycircuit DOT org> <20091105091840 DOT GI26344 AT calimero DOT vinschen DOT de>
In-Reply-To: <20091105091840.GI26344@calimero.vinschen.de>
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

Dear Corinna
Thanks for you kind support.

> So you're running rsync from the Linux source side.  Hmm, that's a problem
> for debugging.  Can you turn this around and run rsync from the Cygwin
> target side?  Does the same problem occur?  I expect it will.
>
>   
Its even simpler, I can run it locally on the cygwin install to 
reproduce the error:

$ cd /
$ mkdir copywin
$ cd copywin
$ rsync -av ../c .   # this is my windows install
$ find . -name "*.*.exe"
./winnt/system32/mode.com.exe
...
$ find . -name "*.*.exe" -print0 | xargs -0 file
PE32 executable for MS Windows (native) Intel 80386 32-bit
...
all "renames" are of this type, but so are others that have not been 
"renamed"

like :
./winnt/system32/wupdmgr.exe
which is of the same file type as the wrongly renamed

This problem does not happen, if I use the cp(1) command instead of rsync

Can you reproduce this ( its a windows professional 2000 with all 
service packs applied here ) ?
If not, please let me know if not, I will provide trace and some binaries.

>> This works, except that for some binaries ( I could not determine
>> any pattern or rule )  ending with .exe .src or .sys  , cygwin  adds
>> .exe extensions ( yielding files  like .sys.exe ).
>>     
>
> It should definitely not happen with files ending in .exe.  A couple
> of questions:
>
>   
Sorry, I was inaccurate, it does not happen on .exe, only on .com  , 
.sys  and .src

Peter

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