summaryrefslogtreecommitdiff
path: root/security/vuls/files/patch-commands_report.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/vuls/files/patch-commands_report.go')
-rw-r--r--security/vuls/files/patch-commands_report.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/vuls/files/patch-commands_report.go b/security/vuls/files/patch-commands_report.go
new file mode 100644
index 000000000000..6c891e71794c
--- /dev/null
+++ b/security/vuls/files/patch-commands_report.go
@@ -0,0 +1,25 @@
+--- commands/report.go.orig 2017-06-23 15:51:48 UTC
++++ commands/report.go
+@@ -132,11 +132,11 @@ func (p *ReportCmd) SetFlags(f *flag.Fla
+ f.BoolVar(&p.debug, "debug", false, "debug mode")
+ f.BoolVar(&p.debugSQL, "debug-sql", false, "SQL debug mode")
+
+- wd, _ := os.Getwd()
+
+- defaultConfPath := filepath.Join(wd, "config.toml")
++ defaultConfPath := "%%ETCDIR%%/config.toml"
+ f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml")
+
++ wd, _ := os.Getwd()
+ defaultResultsDir := filepath.Join(wd, "results")
+ f.StringVar(&p.resultsDir, "results-dir", defaultResultsDir, "/path/to/results")
+
+@@ -155,7 +155,7 @@ func (p *ReportCmd) SetFlags(f *flag.Fla
+ "sqlite3",
+ "DB type for fetching CVE dictionary (sqlite3, mysql or postgres)")
+
+- defaultCveDBPath := filepath.Join(wd, "cve.sqlite3")
++ defaultCveDBPath := "/var/db/vuls/cve.sqlite3"
+ f.StringVar(
+ &p.cvedbpath,
+ "cvedb-path",