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

Re: svn commit: r1422706 - in /subversion/trunk/subversion: libsvn_subr/opt.c tests/cmdline/svntest/main.py

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 17 Dec 2012 10:35:37 +0100

On Sun, Dec 16, 2012 at 10:43:26PM -0000, brane_at_apache.org wrote:
> Author: brane
> Date: Sun Dec 16 22:43:25 2012
> New Revision: 1422706
> URL: http://svn.apache.org/viewvc?rev=1422706&view=rev
> Log:
> Print a warning in "svn --version" if plaintext password storage is enabled.

One more remark on this:

> + {
> + const char *warnstart = "";
> + const char *warnend = "";
> +#ifndef WIN32
> + if (isatty(fileno(stdout)))

In the past we didn't use isatty() since there is no APR wrapper for it.

If we're going to call isatty(), I think it would be best to implement a
portable wrapper first that works on all platforms we support, so that it
can also be used for other purposes.

We could use iatty() to enable --non-interactive if output is not going
to a terminal, for instance. This would prevent password or server cert
prompts from hanging scripts where the auther of the script forgets to
pass --non-interactive, which in my experience is a rather common problem.

Apparently, Perl has an isatty() implementation that works on *nix and
Windows that might serve as an example.

Are you willing to look into that? That would be great!
Received on 2012-12-17 10:36:20 CET

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.