From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BDE8C43457 for ; Tue, 13 Oct 2020 15:27:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CBFE24929 for ; Tue, 13 Oct 2020 15:27:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389419AbgJMP1O (ORCPT ); Tue, 13 Oct 2020 11:27:14 -0400 Received: from smtprelay0193.hostedemail.com ([216.40.44.193]:39844 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389400AbgJMP1L (ORCPT ); Tue, 13 Oct 2020 11:27:11 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id D6F5D12C4; Tue, 13 Oct 2020 15:27:09 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: soda43_0a07fbf27204 X-Filterd-Recvd-Size: 1258 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Tue, 13 Oct 2020 15:27:08 +0000 (UTC) Message-ID: <099a8b90ba46bf5b518f64936c8092d713e67da8.camel@perches.com> Subject: Re: [RFC PATCH v2] checkpatch: add shebang check to EXECUTE_PERMISSIONS From: Joe Perches To: Ujjwal Kumar , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Date: Tue, 13 Oct 2020 08:27:07 -0700 In-Reply-To: References: <20201013120129.1304101-1-ujjwalkumar0501@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-10-13 at 17:43 +0530, Ujjwal Kumar wrote: > Consider the following case: > a python script file with '.py' filename extension but without > a shebang line. Would it be meaningful to allow execute permission > on such a file? More the question I think is for a patch to that file, how do you tell if it has one?