Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25BCC10B92 for ; Mon, 8 Jul 2013 15:35:18 +0000 (UTC) Received: (qmail 74752 invoked by uid 500); 8 Jul 2013 15:35:18 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 74645 invoked by uid 500); 8 Jul 2013 15:35:17 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 74634 invoked by uid 99); 8 Jul 2013 15:35:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jul 2013 15:35:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jul 2013 15:35:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 878652388860; Mon, 8 Jul 2013 15:34:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1500799 - /subversion/trunk/subversion/libsvn_subr/gpg_agent.c Date: Mon, 08 Jul 2013 15:34:55 -0000 To: commits@subversion.apache.org From: stsp@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130708153455.878652388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stsp Date: Mon Jul 8 15:34:55 2013 New Revision: 1500799 URL: http://svn.apache.org/r1500799 Log: * subversion/libsvn_subr/gpg_agent.c (password_set_gpg_agent): Don't require GPG_TTY to be set in the environment. This variable is only needed in some GPG Agent configurations, and we should allow other configurations to work as well. For example, a GUI app might talk to GPG agent without a TTY. Apparently, this is the case on Mac OS X, according to Ben Reser. Modified: subversion/trunk/subversion/libsvn_subr/gpg_agent.c Modified: subversion/trunk/subversion/libsvn_subr/gpg_agent.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/gpg_agent.c?rev=1500799&r1=1500798&r2=1500799&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_subr/gpg_agent.c (original) +++ subversion/trunk/subversion/libsvn_subr/gpg_agent.c Mon Jul 8 15:34:55 2013 @@ -415,7 +415,7 @@ password_get_gpg_agent(svn_boolean_t *do worked. But it isn't. GPG Agent stores the password provided by the user via the pinentry program immediately upon its provision (and regardless of its accuracy as passwords go), so we just need - to check if a usable GPG Agent exists. */ + to check if a running GPG Agent exists. */ static svn_error_t * password_set_gpg_agent(svn_boolean_t *done, apr_hash_t *creds, @@ -436,11 +436,7 @@ password_set_gpg_agent(svn_boolean_t *do return SVN_NO_ERROR; close(sd); - - /* Also ensure that GPG_TTY is set in the evironment. - * If it isn't set the user won't be prompted by the agent. */ - tty_name = getenv("GPG_TTY"); - *done = (tty_name != NULL); + *done = TRUE; return SVN_NO_ERROR; }