summaryrefslogtreecommitdiffstats
path: root/bin/check-new-issues
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2009-12-26 21:46:48 +0000
committerRaphael Geissert <geissert@debian.org>2009-12-26 21:46:48 +0000
commitd787fd1b7086173a9b91c4ca080359c92abac742 (patch)
tree81b9002c1b2cddb83bb62b92368c86f9a986384f /bin/check-new-issues
parent516d73278cba13a1a7c3d15781c49a00fb9a85a9 (diff)
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 git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@13664 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-new-issues')
-rwxr-xr-xbin/check-new-issues9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues
index f452e51e55..b20544e3d0 100755
--- a/bin/check-new-issues
+++ b/bin/check-new-issues
@@ -22,6 +22,7 @@ downloads allitems.txt from cve.mitre.org and shows full decription for each
* .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 @@ TODO: foreach my $todo (reverse sort @todos) {
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 ;

© 2014-2024 Faster IT GmbH | imprint | privacy policy