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

Re: [Possible Bug] Can't checkout without file/directory ownership

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 23 Aug 2011 12:06:08 +0200

On Tue, Aug 23, 2011 at 10:40:28AM +0100, Philip Martin wrote:
> Stefan Sperling <stsp_at_elego.de> writes:
>
> > On Mon, Aug 22, 2011 at 04:57:37PM -0600, Kevin Locke wrote:
>
> >> $ svn co http://svn.apache.org/repos/asf/subversion/trunk testdir
> >> svn: E000001: Can't set permissions on '<path>/testdir/.svn/tmp/svn-HZAmRw': Operation not permitted
>
> > + err = file_perms_set2(tempfile, perms);
> > + if (err)
> > + {
> > + /* Some POSIX systems (e.g. Linux) support filesystems which
> > + * do not have POSIX semantics. The OS should ideally ignore
> > + * attempts to tweak POSIX permission bits on such filesystems,
> > + * but in some cases we get errors.
> > + * E.g. NTFS on Linux will throw EPERM. Ignore this error and
> > + * leave the permission bits in their current state. */
> > + if (APR_STATUS_IS_EPERM(err->apr_err))
> > + svn_error_clear(err);
> > + else
> > + return svn_error_trace(err);
>
> Is APR_STATUS_IS_EPERM going to catch E000001?

Yes. On Linux (which Kevin is using) E000001 is EPERM.

$ cd /home/stsp/src/linux
$ grep EPERM include/asm-generic/errno-base.h
#define EPERM 1 /* Operation not permitted */
Received on 2011-08-23 12:06:58 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.