audit: compare file mode directly
This commit is contained in:
parent
1195718d0e
commit
673f08f17e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user