summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ce48e2)
raw | patch | inline | side by side (parent: 2ce48e2)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 11 Jun 2010 15:09:28 +0000 (15:09 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 11 Jun 2010 15:09:28 +0000 (15:09 +0000) |
program/src/rrd_daemon.c | patch | blob | history |
index 4c7b6bd2f76d80e418fe2064f897b363ac39bf92..4c3d7ed4653d30256c35909a15cc7b1c7e2fb285 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
static int handle_request_fetch (HANDLER_PROTO) /* {{{ */
{
- char *file;
+ char *file, file_tmp[PATH_MAX];
char *cf;
char *start_str;
if (status != 0)
return (syntax_error(sock,cmd));
+ get_abs_path(&file, file_tmp);
+ if (!check_file_access(file, sock)) return 0;
+
status = flush_file (file);
if ((status != 0) && (status != ENOENT))
return (send_response (sock, RESP_ERR,