diff options
author | Stefan Fritsch <sf@apache.org> | 2012-04-26 23:44:51 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-04-26 23:44:51 +0200 |
commit | fe4f92509b95f01f61f951e256fb2f3fb3855f3e (patch) | |
tree | 157864f66563bf4eb6fa95649f46313e3dc47702 /modules/dav/fs/lock.c | |
parent | Syntax updates for mod_l*.xml (diff) | |
download | apache2-fe4f92509b95f01f61f951e256fb2f3fb3855f3e.tar.xz apache2-fe4f92509b95f01f61f951e256fb2f3fb3855f3e.zip |
Replace use of apr_file_write() with apr_file_write_full() to prevent
incomplete writes.
Add comments in some places where error handling/logging is missing.
PR: 53131.
Submitted by: Nicolas Viennot <apache viennot biz>, Stefan Fritsch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav/fs/lock.c')
-rw-r--r-- | modules/dav/fs/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dav/fs/lock.c b/modules/dav/fs/lock.c index 331d4e8314..a15b4b91c7 100644 --- a/modules/dav/fs/lock.c +++ b/modules/dav/fs/lock.c @@ -845,7 +845,7 @@ static dav_error * dav_fs_save_locknull_list(apr_pool_t *p, const char *dirpath, } amt = pbuf->cur_len; - if ((rv = apr_file_write(file, pbuf->buf, &amt)) != APR_SUCCESS + if ((rv = apr_file_write_full(file, pbuf->buf, amt, &amt)) != APR_SUCCESS || amt != pbuf->cur_len) { err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, rv, apr_psprintf(p, |