All pastes #737989 Raw Edit

Unnamed

public text v1 · immutable
#737989 ·published 2007-10-15 22:16 UTC
rendered paste body
		# 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';
		}