subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1471379 - in /subversion/trunk/subversion/libsvn_ra_serf: commit.c update.c
Date Wed, 24 Apr 2013 12:11:35 GMT
Author: rhuijben
Date: Wed Apr 24 12:11:35 2013
New Revision: 1471379

URL: http://svn.apache.org/r1471379
Log:
Verify result of seek operations in two cases where we didn't.

* subversion/libsvn_ra_serf/commit.c
  (create_put_body): Use svn_io_file_seek.

* subversion/libsvn_ra_serf/update.c
  (create_update_report_body): Use svn_io_file_seek.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/commit.c
    subversion/trunk/subversion/libsvn_ra_serf/update.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1471379&r1=1471378&r2=1471379&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Wed Apr 24 12:11:35 2013
@@ -989,7 +989,7 @@ create_put_body(serf_bucket_t **body_bkt
   apr_file_buffer_set(ctx->svndiff, NULL, 0);
 #endif
   offset = 0;
-  apr_file_seek(ctx->svndiff, APR_SET, &offset);
+  SVN_ERR(svn_io_file_seek(ctx->svndiff, APR_SET, &offset, pool));
 
   *body_bkt = serf_bucket_file_create(ctx->svndiff, alloc);
   return SVN_NO_ERROR;

Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1471379&r1=1471378&r2=1471379&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Wed Apr 24 12:11:35 2013
@@ -2721,7 +2721,7 @@ create_update_report_body(serf_bucket_t 
   apr_off_t offset;
 
   offset = 0;
-  apr_file_seek(report->body_file, APR_SET, &offset);
+  SVN_ERR(svn_io_file_seek(report->body_file, APR_SET, &offset, pool));
 
   *body_bkt = serf_bucket_file_create(report->body_file, alloc);
 



Mime
View raw message