telmich/cdist — pull request #27 by mcodd (2012-02-02 16:31:56+00:00)
Title: bugfix - do chmod last

This came up in my testing of the larger __file type changes being discussed. We need to do chmod after chown/chgrp because chown/chgrp can clear the S_ISUID or S_ISGID bits if they're set on an executable file.

This behavior does not appear to apply to directories so I did not change the order there.