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

[PATCH] use stderr when prompting for username

From: Vladimir Prus <ghost_at_cs.msu.su>
Date: 2002-12-25 13:04:24 CET

This is a trivial patch with a simple purpose:
when redirecting output from a command (e.g. diff)
to a file, the "username:" prompt goes to the file too.

- Volodya

Log message:

* subversion/clients/cmdline/prompt.c (promt_user)
      Send prompts to stderr in all cases, including
      the case of non-hidded input.

Patch:
Index: subversion/clients/cmdline/prompt.c
===================================================================
--- subversion/clients/cmdline/prompt.c (revision 4192)
+++ subversion/clients/cmdline/prompt.c (working copy)
@@ -107,8 +107,8 @@
       something. */
    if (! hide)
      {
- printf (prompt_native);
- fflush (stdout);
+ fprintf (stderr, prompt_native);
+ fflush (stderr);

        while (1)
          {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 25 13:04:35 2002

This is an archived mail posted to the Subversion Dev mailing list.