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>] [day] [month] [year] [list]
Message-ID: <1305825809.2336.110.camel@anish-desktop>
Date:	Thu, 19 May 2011 22:53:29 +0530
From:	anish <anish198519851985@...il.com>
To:	apw@...onical.com, greg@...ah.com, man.k1983@...il.com
Cc:	linux-kernel@...r.kernel.org
Subject: PATCH] patch to generate warning when signed-of line in patch in
 not proper

From: anish kumar <anish198519851985@...il.com>

This patch generates warning when there is no space between the
patch submitter name and successive mail-id.

Signed-off-by: anish kumar <anish198519851985@...il.com>
---
 scripts/checkpatch.pl |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index d867081..437c6d4 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1373,10 +1373,16 @@ sub process {
 				WARN("Signed-off-by: is the preferred form\n" .
 					$herecurr);
 			}
-			if ($line =~ /^\s*signed-off-by:\S/i) {
-				WARN("space required after Signed-off-by:\n" .
+			if ($line =~ /^\s*signed-off-by:(.*)/i) {
+			 if($1 !~ /^(\s[a-zA-Z].*)/i) {
+				WARN("Space required after Signed-off-by:\n" .
 					$herecurr);
 			}
+			if($1 !~ /[\sa-zA-Z]+\s<.*>/i) {
+				WARN("Space required between Full Name & Mail-id:\n" .
+					$herecurr);
+				}
+			}
 		}
 
 # Check for wrappage within a valid hunk of the file
-- 
1.7.0.4


--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ