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

[PATCH] Fix Issue 1117: Send prompts to stderr

From: <peter_at_pdavis.cx>
Date: 2003-01-28 11:38:20 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fix Issue 1117. This is a simple fix: display all prompt callbacks to
stderr. Currently, apr_password_get() displays its prompts to stderr, but
Subversion's own prompt code simply printf's to stdout. This change puts
both prompts to the same stream.

* clients/cmdline/prompt.c (svn_cl__prompt_user):
  Send prompts to stderr instead of stdout.

Index: subversion/clients/cmdline/prompt.c
===================================================================
- --- subversion/clients/cmdline/prompt.c (revision 4632)
+++ subversion/clients/cmdline/prompt.c (working copy)
@@ -103,8 +103,8 @@

   if (! hide)
     {
- - printf (prompt_native);
- - fflush (stdout);
+ fprintf (stderr, prompt_native);
+ fflush (stderr);

       while (1)
         {

- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Nl2fhDAgUT1yirARAh21AJ41HccOhCso7Zk85iuMB1ZuD6oYmwCfQo6M
1+k1tTVQHRQffaXLcH7oJ1g=
=Ooy7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:21:54 2006

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.