[Secure-testing-commits] r13664 - bin

Raphael Geissert geissert at alioth.debian.org
Sat Dec 26 21:46:48 UTC 2009


Author: geissert
Date: 2009-12-26 21:46:48 +0000 (Sat, 26 Dec 2009)
New Revision: 13664

Modified:
   bin/check-new-issues
Log:
Add a shortcut to report-vuln from within check-new-issues

Any decent editor should be able to pipe the message to mutt or any
other MUA


Modified: bin/check-new-issues
===================================================================
--- bin/check-new-issues	2009-12-26 21:14:16 UTC (rev 13663)
+++ bin/check-new-issues	2009-12-26 21:46:48 UTC (rev 13664)
@@ -22,6 +22,7 @@
   * .cname to do "apt-cache search name"
   * .wname to look up name in wnpp
   * .mpackage to search data/embedded-code-copies for "package"
+  * .rpackage to launch an editor with a report of the issue against "package"
   * v or e to launch an editor with the current item
   * q to save and quit
   * CTRL-C to quit without saving
@@ -253,6 +254,14 @@
 				next TODO;
 			}
 		}
+		elsif ($r=~ /^\.r(.*)$/ ) {
+			my $tmp=new File::Temp();
+			my $tmpname=$tmp->filename;
+			system("$basedir/bin/report-vuln $1 $todo > $tmpname");
+			system("$editor $tmpname");
+			close($tmp);
+			next READ;
+		}
 		else {
 			${$data->{$todo}->{entry}} =~
 				s/^\s*TODO: check/\tNOT-FOR-US: $r/m ;




More information about the Secure-testing-commits mailing list