Author: stsp
Date: Mon Jul 25 20:00:58 2011
New Revision: 1150870

URL: http://svn.apache.org/viewvc?rev=1150870&view=rev
Log:
* subversion/libsvn_auth_gpg_agent/gpg_agent.c
  (password_get_gpg_agent): Write the correct number of bytes to the
   socket when sending the GET_PASSPHRASE command. We used to send one
   (random) byte too much, which the agent will interpret as the first
   byte of the next command we send.

Modified:
    subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c

Modified: subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c?rev=1150870&r1=1150869&r2=1150870&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c (original)
+++ subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c Mon Jul 25 
20:00:58 2011
@@ -275,7 +275,7 @@ password_get_gpg_agent(const char **pass
                          escape_blanks(password_prompt),
                          escape_blanks(realm_prompt));
 
-  if (write(sd, request, strlen(request) + 1) == -1)
+  if (write(sd, request, strlen(request)) == -1)
     {
       close(sd);
       return FALSE;


Reply via email to