Code

Now, the daemon will check that a base directory is NOT reached via
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 14 Oct 2008 19:08:36 +0000 (19:08 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 14 Oct 2008 19:08:36 +0000 (19:08 +0000)
commit33c77f17138d2ec25a920ef4b7a34537adc8b579
tree29f8305f8bf1a790fe4e25b5a01c88df33838e46
parente0fdf88fc598eec0266ecb99ca4d0dabfb7e007d
Now, the daemon will check that a base directory is NOT reached via
symbolic link.  Documentation added to illustrate the restriction.

This allows several simplifying (and performance-enhancing) assumptions to
be made elsewhere in the code:

 * it ensures that paths resolved in the client via realpath() will match
   our data structure keys

 * it's possible to generate the correct absolute path when given a
   relative path by simply prepending the base directory

 * it's not necessary to resolve paths that begin with '/'
 -- kevin

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1603 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/doc/rrdcached.pod
program/src/rrd_daemon.c