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

Bug with store-password?

From: Marc Haesen <marc.haesen_at_telindus.com>
Date: 2003-05-27 16:48:42 CEST

Hi,

When I add the statement 'store-password=yes' in my config file, my password
is not cached. If I remove this line from the config file, my password is
cached.
I am using the svn.exe client.

If I look at line 1034 of subversion\clients\cmdline\main.c I see the
following code:

    /* There are two different ways the user can disable disk caching
       of credentials: either via --no-auth-cache, or in the config
       file ('store-password = no'). */
    svn_config_get (cfg, &store_password_val,
                    SVN_CONFIG_SECTION_AUTH,
SVN_CONFIG_OPTION_STORE_PASSWORD,
                    NULL);
    if (opt_state.no_auth_cache || store_password_val)
      svn_auth_set_parameter(ab, SVN_AUTH_PARAM_NO_AUTH_CACHE,
                             (void *) "");

Does this code not have to be:

    /* There are two different ways the user can disable disk caching
       of credentials: either via --no-auth-cache, or in the config
       file ('store-password = no'). */
    svn_config_get (cfg, &store_password_val,
                    SVN_CONFIG_SECTION_AUTH,
SVN_CONFIG_OPTION_STORE_PASSWORD,
                    NULL);
    if (opt_state.no_auth_cache || (store_password_val &&
!strncmp(store_password_val,"no")))
      svn_auth_set_parameter(ab, SVN_AUTH_PARAM_NO_AUTH_CACHE,
                             (void *) "");

I am assuming that storing of the password is the default behaviour.

Marc
Hi,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 27 16:50:26 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.