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

Re: svn commit: r1004286 - in /subversion/trunk: ./ subversion/libsvn_subr/io.c

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 8 Jan 2011 14:21:06 +0200

Another bug in the baton usage:

Daniel Shahaf wrote on Sat, Jan 08, 2011 at 14:00:04 +0200:
> Ramkumar Ramachandra wrote on Sat, Jan 08, 2011 at 16:06:01 +0530:
> > +/* the default permissions as read from the temp folder */
> > +static volatile apr_fileperms_t default_perms = 0;
> > +static volatile svn_atomic_t perms_init_state;
> > +
> > +/* Helper function to set default permissions. Passed to svn_atomic__init_once */
> > static svn_error_t *
> > +set_default_perms(void *baton, apr_pool_t *scratch_pool)
> > {
> > + apr_fileperms_t *default_perms = (apr_fileperms_t *) baton;
> > ...
> > +static svn_error_t *
> > +get_default_file_perms(apr_fileperms_t *perms, apr_pool_t *scratch_pool)
> > +{
> > + SVN_ERR(svn_atomic__init_once(&perms_init_state, set_default_perms,
> > + default_perms, scratch_pool));
Received on 2011-01-08 13:24:42 CET

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.