diff options
Diffstat (limited to 'file_io/unix/seek.c')
-rw-r--r-- | file_io/unix/seek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/seek.c b/file_io/unix/seek.c index e70805d7f5d76..3f5aa00e95677 100644 --- a/file_io/unix/seek.c +++ b/file_io/unix/seek.c @@ -117,10 +117,10 @@ apr_status_t apr_file_trunc(apr_file_t *fp, apr_off_t offset) /* Reset buffer positions for write mode */ fp->bufpos = fp->direction = fp->dataRead = 0; } + file_unlock(fp); if (rc) { return rc; } - file_unlock(fp); } if (ftruncate(fp->filedes, offset) == -1) { return errno; |