summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBojan Smojver <bojan@apache.org>2007-05-14 23:45:20 +0000
committerBojan Smojver <bojan@apache.org>2007-05-14 23:45:20 +0000
commit6498299aedecf0214a0c88ebac7d9ae82811ed89 (patch)
tree0372c06732e91dd99931c7061d26ed648424836e
parent246cabbc14f4f66ebccd81ab3227ea6438371a00 (diff)
downloadapr-6498299aedecf0214a0c88ebac7d9ae82811ed89.tar.gz
Avoid calling apr_file_flush_locked() on an unlocked file.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@538019 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--file_io/unix/seek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/seek.c b/file_io/unix/seek.c
index 34bb2a55f..77ef96e7d 100644
--- a/file_io/unix/seek.c
+++ b/file_io/unix/seek.c
@@ -101,5 +101,5 @@ apr_status_t apr_file_trunc(apr_file_t *fp, apr_off_t offset)
if (ftruncate(fp->filedes, offset) == -1) {
return errno;
}
- return setptr(fp, offset);
+ return apr_file_seek(fp, APR_SET, &offset);
}