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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.