From 673f08f17e036b7fa200553ae9a6d0a9f73ca4ac Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 29 Oct 2014 22:47:17 -0500 Subject: [PATCH] audit: compare file mode directly --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 2bc10882e1..e968bf8afa 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