opscode/chef — pull request #325 by ringods (2012-07-03 08:35:17+00:00)
Title: [CHEF-3237] Only appending "~/Library/LaunchAgents" when *not* running a...

Only append "~/Library/LaunchAgents" when chef-client is not run as root. As root, HOME can't be resolved and the chef-client run will always return with error.