subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1422811 - /subversion/trunk/subversion/libsvn_subr/opt.c
Date Mon, 17 Dec 2012 09:16:35 GMT
Author: rhuijben
Date: Mon Dec 17 09:16:34 2012
New Revision: 1422811

URL: http://svn.apache.org/viewvc?rev=1422811&view=rev
Log:
* subversion/libsvn_subr/opt.c
  (svn_opt__print_version_info): Don't produce warnings for storing password
    as plain text when we store them as encrypted text.

Modified:
    subversion/trunk/subversion/libsvn_subr/opt.c

Modified: subversion/trunk/subversion/libsvn_subr/opt.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/opt.c?rev=1422811&r1=1422810&r2=1422811&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/opt.c (original)
+++ subversion/trunk/subversion/libsvn_subr/opt.c Mon Dec 17 09:16:34 2012
@@ -1125,23 +1125,23 @@ svn_opt__print_version_info(const char *
                              svn_version_ext_build_host(info)));
   SVN_ERR(svn_cmdline_printf(pool, "%s\n", svn_version_ext_copyright(info)));
 
-#ifndef SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE
+#if defined(SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE) && !defined(WIN32)
   {
     const char *warnstart = "";
     const char *warnend = "";
-#ifndef WIN32
+
     if (isatty(fileno(stdout)))
       {
         warnstart = "\033[1;31m";
         warnend = "\033[0;m";
       }
-#endif /* WIN32 */
+
     SVN_ERR(svn_cmdline_printf(
                 pool,
                 _("%sWARNING: Plaintext password storage is enabled!%s\n\n"),
                 warnstart, warnend));
   }
-#endif /* SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE */
+#endif /* SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE && !WIN32 */
 
   if (footer)
     {



Mime
View raw message