summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe50f51)
raw | patch | inline | side by side (parent: fe50f51)
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) |
src/rrd_daemon.c | patch | blob | history |
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index a0e6bdbf9f629d62e8408548cffd39edc9843154..5163f34bc9ed924e9e0a76f480ba9cd3da0651cb 100644 (file)
--- a/src/rrd_daemon.c
+++ b/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)