From: Rabin Vincent Date: Tue, 26 Oct 2010 21:23:16 +0000 (-0700) Subject: checkpatch: check for incorrect permissions X-Git-Tag: v2.6.37-rc1~105^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bf9a009fccea422bc355414a3bdf5f35fff9f36;p=pandora-kernel.git checkpatch: check for incorrect permissions Throw an error when a source file has been given execute permissions using the mode change line present in git diffs. Also alow the filename matching to use the "diff" line in addition to the "+++" line, since the mode change lines appear before any "+++" lines. [apw@canonical.com: simplified filename logic slightly, added tests] Cc: Andy Whitcroft Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed