aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-29 22:47:17 -0500
committerJack Nagel2014-10-29 22:47:17 -0500
commit673f08f17e036b7fa200553ae9a6d0a9f73ca4ac (patch)
treed3ba2b72fde01e714d202a49db1bda1d793f4551 /Library
parent1195718d0ee0413d271f109c40bd58e73431ea8f (diff)
downloadbrew-673f08f17e036b7fa200553ae9a6d0a9f73ca4ac.tar.bz2
audit: compare file mode directly
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 2bc10882e..e968bf8af 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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