saltstack/salt — pull request #829 by dcolish (2012-03-04 17:31:24+00:00)
Title: let minion run as non-root, use more with statements

I was trying to run minion as non-root and it looks like the umask we set before running makedirs was not setting +w for the user minion is running as. Also, I've refactored salt.states.file to use with statements.