audit: compare file mode directly

This commit is contained in:
Jack Nagel 2014-10-29 22:47:17 -05:00
parent 1195718d0e
commit 673f08f17e

View File

@ -95,7 +95,7 @@ class FormulaAuditor
end
def audit_file
unless formula.path.stat.mode.to_s(8) == "100644"
unless formula.path.stat.mode == 0100644
problem "Incorrect file permissions: chmod 644 #{formula.path}"
end