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

Re: Fwd: [Issue 2399] svn_ra_stat returning error for non-existent path instead of NULL dirent_t*

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2005-09-14 10:39:08 CEST

On Tue, Sep 13, 2005 at 07:49:57PM -0700, William Ferguson wrote:
> > FWIW, I agree. I don't think William is particularly
> > bothered about how
> > this situation manifests itself, as long as it can
> > be reliably identified.
> I don't think that returning SVN_ERR_FS_NOT_DIRECTORY
> is the appropriate response for svn_ra_stat.
> [snip good arguments]

One other thing to bear in mind is that svn_ra_stat is modelled upon the
stat(2) C function, which has separate returns for 'path component does
not exist' (ENOENT) and 'path component is not a directory' (ENOTDIR).
(Though in that case, both are considered error conditions).

In any case, the documentation and implementations must agree, whatever
the developers decide.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 14 10:39:59 2005

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.