joomla/joomla-platform — pull request #584 by nikosdion (2011-12-02 22:42:37+00:00)
Title: JPath::check() throws Error 20 when running in a chroot jail

When JPATH_ROOT is an empty string –i.e. we run inside a chroot jail– JPath::check() always raises error 20 (snooping out of bounds). By definition of the chroot jail, we can snoop out of bounds in this case. Therefore this check should always succeed. Ergo the proposed change.