This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Renaming issue, changing case only.


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]