lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 Dec 2013 16:53:36 +0530
From:	Jagannadha Sutradharudu Teki 
	<jagannadha.sutradharudu-teki@...inx.com>
To:	<linux-kernel@...r.kernel.org>
CC:	Joe Perches <joe@...ches.com>, Andy Whitcroft <apw@...onical.com>,
	Jagannadha Sutradharudu Teki <jaganna@...inx.com>
Subject: [PATCH] checkpatch: Do not hardcode perl path

checkpatch.pl requires perl v5.10.0 to run but it
doesn't require to place in /usr/bin/perl
Use env to ensure that the interpreter used is the
first one on environment's $PATH on system with
several versions of perl installed.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@...inx.com>
---
 scripts/checkpatch.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9c98100..241bb11 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1,10 +1,11 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # (c) 2001, Dave Jones. (the file handling bit)
 # (c) 2005, Joel Schopp <jschopp@...tin.ibm.com> (the ugly bit)
 # (c) 2007,2008, Andy Whitcroft <apw@...ibm.com> (new conditions, test suite)
 # (c) 2008-2010 Andy Whitcroft <apw@...onical.com>
 # Licensed under the terms of the GNU GPL License version 2
 
+use warnings;
 use strict;
 use POSIX;
 
-- 
1.8.3


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists