diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-30 14:47:11 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-30 14:47:11 +0000 |
commit | 61c73a8b70d5010b3e66c7c84f2cd94853f4c061 (patch) | |
tree | 5522059c14e81b599f261bf7d2fe8755ab71b940 | |
parent | c4c8333df6223727c0173140ba469979fb277b45 (diff) | |
download | libapr-61c73a8b70d5010b3e66c7c84f2cd94853f4c061.tar.gz |
Fix writing to a buffered file.
Submitted by: Jon Travis <jtravis@covalent.net>
Reviewed by: Ryan Bloom
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59750 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/readwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/readwrite.c b/file_io/unix/readwrite.c index 7e4312ffc..7143f41e8 100644 --- a/file_io/unix/readwrite.c +++ b/file_io/unix/readwrite.c @@ -149,7 +149,7 @@ ap_status_t ap_write(struct file_t *thefile, void *buf, ap_ssize_t *nbytes) { ap_size_t rv; - if (thefile->filedes < 0) { + if (thefile->filedes < 0 && !thefile->buffered) { *nbytes = 0; return APR_EBADF; } |