summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0e1c84)
raw | patch | inline | side by side (parent: d0e1c84)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 30 Sep 2008 18:43:15 +0000 (18:43 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 30 Sep 2008 18:43:15 +0000 (18:43 +0000) |
program/src/rrd_daemon.c | patch | blob | history |
index a0e6bdbf9f629d62e8408548cffd39edc9843154..5163f34bc9ed924e9e0a76f480ba9cd3da0651cb 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
if (strcasecmp (command, "update") == 0)
{
- /* don't re-write updates in replay mode */
- if (fd >= 0)
- journal_write(command, buffer_ptr);
-
status = has_privilege(privilege, PRIV_HIGH, fd);
if (status <= 0)
return status;
+ /* don't re-write updates in replay mode */
+ if (fd >= 0)
+ journal_write(command, buffer_ptr);
+
return (handle_request_update (fd, buffer_ptr, buffer_size));
}
else if (strcasecmp (command, "wrote") == 0 && fd < 0)