Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2426 - branches/fsvs-1.2.x/fsvs/src/racallback.c

fsvs
Discussion topic

Back to topic list

svn commit: r2426 - branches/fsvs-1.2.x/fsvs/src/racallback.c

Author tekknokrat
Full name Gunnar Thielebein
Date 2010-02-13 03:21:58 PST
Message Author: tekknokrat
Date: 2010-02-13 03:21:57-0800
New Revision: 2426

Modified:
   branches/fsvs-1.2.x/​fsvs/src/racallback.​c

Log:
 - create svn's user environment (~/.subversion) if not exist
 - store user/password credentials in svn's user environment

Modified: branches/fsvs-1.2.x/​fsvs/src/racallback.​c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/src/racallbac​k.c?view=diff&pa​threv=2426&r1=24​25&r2=2426
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/src/racallback.​c (original)
+++ branches/fsvs-1.2.x/​fsvs/src/racallback.​c 2010-02-13 03:21:57-0800
@@ -39,6 +39,7 @@
     svn_error_t *status_svn;
     apr_hash_t *cfg_hash;
     svn_config_t *cfg;
+ char *cfg_usr_path;
 
 
     STOPIF( hlp__get_svn_config(​&cfg_hash), NULL);
@@ -46,6 +47,11 @@
     cfg = apr_hash_get(cfg_hash, SVN_CONFIG_CATEGORY_CONFIG,
             APR_HASH_KEY_STRING);
 
+ /* get svn's user configuration path */
+ STOPIF_SVNERR( svn_config_get_user_​config_path, (&cfg_usr_path, NULL, NULL, pool ) );
+
+ /* make sure that folders for storing authentications credentials are created */
+ STOPIF_SVNERR( svn_config_ensure, (cfg_usr_path, pool));
 
     /* Set up Authentication stuff. */
     STOPIF_SVNERR( svn_cmdline_setup_auth_baton,
@@ -54,7 +60,7 @@
              opt__get_int(OPT__AUTHOR) ?
              opt__get_string(OPT__AUTHOR) : NULL,
              NULL, /* Password */
- opt__get_string(OPT_​_CONFIG_DIR),
+ cfg_usr_path,
              0, /* no_auth_cache */
              cfg,
              NULL, /* cancel function */

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r2426 - branches/fsvs-1.2.x/fsvs/src/racallback.c tekknokrat Gunnar Thielebein 2010-02-13 03:21:58 PST
Messages per page: