delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/09/14:19:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: MP <ajaxsupremo AT yahoo DOT com>
Subject: Re: Trouble with cygwin git
Date: Wed, 9 Jan 2008 19:18:51 +0000 (UTC)
Lines: 38
Message-ID: <loom.20080109T185940-766@post.gmane.org>
References: <376007 DOT 24556 DOT qm AT web45909 DOT mail DOT sp1 DOT yahoo DOT com> <loom DOT 20080102T190832-291 AT post DOT gmane DOT org> <20080108141917 DOT GA29568 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
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

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> [...]
> 
> Could you create a simple, self-contained testcase in plain C, which
> allows to reproduce the problem?

I did try to do this, and couldn't reproduce the failure.  The failure only
happens in the git context for whatever reason.  Note: To try to reproduce the
problem with a simple C program, I used exactly the same files and filenames git
had chosen in exactly the same directories.

From some older postings on this mailing list, I got the idea to try:

  MoveFileEx(<existing>, <new>, MOVEFILE_CREATE_HARDLINK);

instead of:

  CreateHardLinkA(<new>, <existing>, NULL);

in fhandler_disk_file.cc, and this actually worked for me.  I'm currently
running a cygwin1.dll with this local modification, and haven't seen problems
yet.

The funny thing is I have used canned git/cygwin successfully on other machines.
Only with this particular machine have I seen this problem.  Maybe it has to do
with some interaction with a virus-checking program or other background process.

> 
> Corinna
> 

PS I am using gmane to post this message, and cannot CC you directly; sorry
about that.


MP



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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