projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to fix collectd/collectd#229 by doing user / group lookups before we fork.
[collectd.git]
/
src
/
table.c
diff --git
a/src/table.c
b/src/table.c
index
d48a2ef
..
9641c75
100644
(file)
--- a/
src/table.c
+++ b/
src/table.c
@@
-279,6
+279,7
@@
static int tbl_config_table (oconfig_item_t *ci)
log_err ("Table \"%s\" does not specify any separator.", tbl->file);
status = 1;
}
log_err ("Table \"%s\" does not specify any separator.", tbl->file);
status = 1;
}
+ strunescape (tbl->sep, strlen (tbl->sep) + 1);
if (NULL == tbl->instance) {
tbl->instance = sstrdup (tbl->file);
if (NULL == tbl->instance) {
tbl->instance = sstrdup (tbl->file);
@@
-382,7
+383,7
@@
static int tbl_result_dispatch (tbl_t *tbl, tbl_result_t *res,
assert (res->values[i] < fields_num);
value = fields[res->values[i]];
assert (res->values[i] < fields_num);
value = fields[res->values[i]];
- if (0 != parse_value (value, &values[i], res->ds->ds[i]))
+ if (0 != parse_value (value, &values[i], res->ds->ds[i]
.type
))
return -1;
}
return -1;
}