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

Re: log-addressing index creation needs to handle pre-existing files

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Mon, 23 Dec 2013 01:03:19 +0100

On Tue, Dec 10, 2013 at 7:48 PM, Philip Martin
<philip.martin_at_wandisco.com>wrote:

> Philip Martin <philip_at_codematters.co.uk> writes:
>
> > ../src/subversion/libsvn_subr/io.c:3432: (apr_err=EACCES)
> > svn: E000013: Can't open file
> '/home/pm/sw/subversion/obj2/repo/db/revs/0/1.l2p': Permission denied
>
> I fixed this with r1549924, but I don't know if Windows needs some other
> than EACCES:
>
> + err = svn_io_file_open(index_file, file_name,
> + APR_WRITE | APR_CREATE | APR_TRUNCATE
> + | APR_BUFFERED,
> + APR_OS_DEFAULT, pool);
> +
> + /* ### Do we need another check, EEXIST say, on Windows FAT32? */
> + if (!err || !first || !APR_STATUS_IS_EACCES(err->apr_err))
> + break;
>

Thanks Philip for fixing!
I simplified the check in r1553045,-6.

-- Stefan^2.
Received on 2013-12-23 01:03:54 CET

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