mod_rrdtool: fix creating file if it doesn't exist (#1788)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2686 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2009-10-31 09:54:13 +00:00
parent ef28250d23
commit 47bd40368d
2 changed files with 5 additions and 4 deletions

1
NEWS
View File

@ -8,6 +8,7 @@ NEWS
* mod_magnet: add traceback for printing lua errors
* mod_rewrite: fix compile error if compiled without pcre
* disable warning "CLOSE-read" (fixes #2091)
* mod_rrdtool: fix creating file if it doesn't exist (#1788)
- 1.4.24 - 2009-10-25
* Add T_CONFIG_INT for bigger integers from the config (needed for #1966)

View File

@ -237,11 +237,11 @@ static int mod_rrdtool_create_rrd(server *srv, plugin_data *p, plugin_config *s)
"not a regular file:", s->path_rrd);
return HANDLER_ERROR;
}
}
/* still create DB if it's empty file */
if (st.st_size > 0) {
return HANDLER_GO_ON;
/* still create DB if it's empty file */
if (st.st_size > 0) {
return HANDLER_GO_ON;
}
}
/* create a new one */