You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/07/25 19:48:52 UTC

svn commit: r1150807 - /subversion/trunk/subversion/libsvn_auth_gpg_agent/gpg_agent.c

Author: stsp
Date: Mon Jul 25 17:48:52 2011
New Revision: 1150807

URL: http://svn.apache.org/viewvc?rev=1150807&view=rev
Log:
* subversion/libsvn_auth_gpg_agent/gpg_agent.c
  (send_option, password_get_gpg_agent): Use write() instead of send().
   We don't set any flags for send() so we might as well just use write().

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=1150807&r1=1150806&r2=1150807&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 17:48:52 2011
@@ -109,7 +109,7 @@ send_option(int sd, char *buf, size_t n,
 
   request = apr_psprintf(scratch_pool, "OPTION %s=%s\n", option, value);
 
-  if (send(sd, request, strlen(request), 0) == -1)
+  if (write(sd, request, strlen(request)) == -1)
     return FALSE;
 
   if (!receive_from_gpg_agent(sd, buf, n))
@@ -273,7 +273,7 @@ password_get_gpg_agent(const char **pass
                          escape_blanks(password_prompt),
                          escape_blanks(realm_prompt));
 
-  if (send(sd, request, strlen(request) + 1, 0) == -1)
+  if (write(sd, request, strlen(request) + 1) == -1)
     {
       close(sd);
       return FALSE;