Re: rrd_graph and flush behavior
Eduardo Bragatto <[email protected]>
| Newsgroups | gmane.comp.db.rrdtool.devel |
|---|---|
| Message-ID | <[email protected]> |
Actually, the following code does the same using less code:
if (*path == '/') /* absolute path */
{
if (! is_unix)
{
rrd_set_error ("absolute path names not allowed when talking "
"to a remote daemon");
return (NULL);
}
}
if (is_unix)
{
realpath (path, resolved_path);
ret = resolved_path;
}
Basically, we want realpath() to be called every time we have a unix
socket, it doesn't matter if it's a relative or absolute path.
- Eduardo Bragatto