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
svn/tags/lighttpd-1.4.25
Stefan Bühler 14 years ago
parent ef28250d23
commit 47bd40368d

@ -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)

@ -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 */

Loading…
Cancel
Save