On Tue, Aug 23, 2011 at 10:40:28AM +0100, Philip Martin wrote:
> Stefan Sperling <s...@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 */

Reply via email to