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 _______________________________________________ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers