summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2003-02-01 15:08:52 +0100
committerJeff Trawick <trawick@apache.org>2003-02-01 15:08:52 +0100
commita554f67cc9c5578b1b2276163d12a99679954775 (patch)
tree9653ea89602bca3a31b731dc8aa34843c99a090d /modules
parentadd some todos (diff)
downloadapache2-a554f67cc9c5578b1b2276163d12a99679954775.tar.xz
apache2-a554f67cc9c5578b1b2276163d12a99679954775.zip
Fix mod_cern_meta to not create empty metafiles when the
metafile searched for does not exist. PR: 12353 Submitted by: Owen Rees <owen_rees@hp.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/metadata/mod_cern_meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metadata/mod_cern_meta.c b/modules/metadata/mod_cern_meta.c
index 27376b6f05..f43704039c 100644
--- a/modules/metadata/mod_cern_meta.c
+++ b/modules/metadata/mod_cern_meta.c
@@ -380,7 +380,7 @@ static int add_cern_meta_data(request_rec *r)
}
ap_destroy_sub_req(rr);
- retcode = apr_file_open(&f, metafilename, APR_READ | APR_CREATE, APR_OS_DEFAULT, r->pool);
+ retcode = apr_file_open(&f, metafilename, APR_READ, APR_OS_DEFAULT, r->pool);
if (retcode != APR_SUCCESS) {
if (APR_STATUS_IS_ENOENT(retcode)) {
return DECLINED;