[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: bug in svn_client_copy wc to url

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 8 May 2009 11:27:53 +0100

On Fri, May 08, 2009 at 03:40:31PM +0530, Senthil Kumaran S wrote:
> Alan Wood wrote:
> > Hi All,
> > Just been trying to write tests for the first time ( in subversion that is ).
> > In the process I came across a seg fault when doing a svn copy wc to url.
> >
> > There seems to be no check to see if a wc file exists before libsvn_client\copy.c line
> > 1096 where it crashes on entry == NULL
> >
> > SVN_ERR(svn_wc_entry(&entry, pair->src, adm_access,
> > FALSE, iterpool));
> > pair->src_revnum = entry->revision;
>
> Yes this is a bug. Alan, are planning to come up with a patch for the same?

FWIW, this does not reproduce with 1.5.1:

$ svn cp not_a_file svn:///tmp/svn-sandbox/repos/
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
$ svn --version
svn, version 1.5.1 (r32289)

(No, I have no dev build at the moment...)

Stefan
Received on 2009-05-08 12:32:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.