Unnamed
public text v1 · immutable # make svn run correctly without a homedir
if (function_exists('posix_getuid'))
{
$userinfo = posix_getpwuid(posix_getuid());
if ($userinfo['name'] == 'nobody')
$this->_svncommand = '/usr/bin/svn --config-dir /tmp/.svn-nobody-hack';
else
$this->_svncommand = '/usr/bin/svn';
}
else
{
# not POSIX. assume nothing will explode.
# (If it does, Microsoft's fault, not mine.)
$this->_svncommand = '/usr/bin/svn';
}