X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 4 Mar 2009 14:32:17 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Renaming  issue, changing case only.
Message-ID: <20090304133217.GC10046@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20090304084540.GY10046@calimero.vinschen.de> <200903041256.n24CulDm001597@mail.pdinc.us>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200903041256.n24CulDm001597@mail.pdinc.us>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar  4 07:57, Jason Pyeron wrote:
> > Cygwin 1.7 itself has no problems to rename a file just 
> > case-wise, neither under casesensitive mount points nor under 
> > caseinsensitive mount points.  This looks like a problem in svn.
> 
> 
> But as this works on other platforms it appears to be a cygwin platform only bug
> in svn. If here is not the best place, where should this be addressed?

No, it's fine.  I was just addressing the problem itself to point out
where it probably occurs.  I assume that it works fine when using
casesensitive mount points under 1.7.  I assume further that the problem
is the same as old versions of coreutils had when only trying to change
the case of a name on a caseinsensitive filesystem, basically along
these lines.

  stat (old_path, &ost)
  if (stat (new_path, &nst) == 0)
    /* Uh oh, target exists */
    if (ost.st_ino == nst.st_ino && ost.st_dev == nst.st_dev)
      /* Even worse, it's the same file */


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

