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

Re: [PATCH] Simple user-logging for svnserve daemon mode

From: Sir Woody Hackswell <woody_at_hackswell.com>
Date: 2003-03-25 19:23:40 CET

On Tue, 25 Mar 2003, Garrett Rooney wrote:

> Sir Woody Hackswell wrote:
>
> >+ user = (char *) malloc(16 * sizeof(char));
> >+
> >
>
> don't do that.
>
> we use memory pools, not malloc, unless the malloc is necessary to
> interoperate with another library (neon or berkeley db come to mind).
> also, what's with the hard coded 16? and is user even freed anywhere?

It was a quick hack. Sorry. I'm just starting out with svn, and this patch
is more proof-of-concept than a polished version. I threw it together in an
hour or so. :/

Should I work on a more "proper" solution/patch? Where do I read up on
memory pools, or what one or two functions can I look at for examples?
 
> as for the actual functionality, i'll leave it to ghuson to comment, as
> i think he's got plans for ra_svn's authentication.
>
> -garrett

I'd be willing to work on a better version. :) But we kind of needed
something now to prove to management that this is a doable solution. ;)

And as I said, this isn't really "authentication"... It's passing a username
into svnserve. ;)

But thank you for your comments.

-Richard Balint

-----
If you could delete the recycle bin, where would it go?

Sir.Woody_at_Hackswell.com http://sir.woody.hackswell.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 25 19:24:31 2003

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.