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

Re: How to find the user's config dir

From: Tobias Ringström <tobias_at_ringstrom.mine.nu>
Date: 2003-09-06 08:49:26 CEST

David Waite wrote:
> I believe he wants to create something similar to the user password
> cache within ~/.subversion on *nix, to store user-accepted SSL
> certificates. Ben, seeing that you wrote that caching code, I think you
> are probably the most qualified to answer :-)

Correct, but not only on *nix of course.

I want to find the path to the user's config dir which on unix is
~/.subversion and on Windows is "c:\Documents and
Settings\blahblahblah\Subversion".

Unfortunately I cannot find an easy way to find this path. The problem
is that I need the config_dir stuff to be passed on from the client
somehow. There is a private function that I think is really funny. It
looks like this:

svn_error_t *
svn_config__user_config_path (const char *config_dir,
                               const char **path_p,
                               const char *fname,
                               apr_pool_t *pool);

In order to get the path I need to supply the config_dir! I can't say
that I really like the config_dir implementation...

I hope I'm clearer now.

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 6 09:10:20 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.