From 24c7879b19be2a0dfc22bcd37ae32efeecde4eeb Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 22 Jan 2011 09:32:16 -0800 Subject: audit - check formula permissions --- Library/Homebrew/cmd/audit.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5580eaeeb..049260d47 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -212,6 +212,11 @@ module Homebrew extend self problems += audit_formula_instance f problems += audit_formula_urls f + perms = File.stat(f.path).mode + if perms.to_s(8) != "100644" + problems << " * permissions wrong; chmod 644 #{f.path}" + end + text = "" File.open(f.path, "r") { |afile| text = afile.read } -- cgit v1.2.3