diff options
author | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-12-08 11:26:57 +0000 |
---|---|---|
committer | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-12-08 11:26:57 +0000 |
commit | de7c95c2cad488bb5636fbf945b4e59a94b1c7a1 (patch) | |
tree | 68a52ca0a55981736e5856486a245b2ab9e67a11 /security/vuls/files/patch-subcmds_report.go | |
parent | Update lang/erlang-runtime23 to version 23.1.5. (diff) |
security/vuls: Update to 0.9.0
This patch updates from v0.6.1 to only v0.9.0 [1] for
a smooth upgrade experience. The next one will update
from 0.9.0 to 0.13.7 [2].
[1] https://github.com/future-architect/vuls/releases/tag/v0.9.0
[2] https://github.com/future-architect/vuls/releases
PR: 251654
Submitted by: Alexandru Ciobanu <iscandr@gmail.com> (maintainer)
Approved by: tcberner (mentor)
Notes
Notes:
svn path=/head/; revision=557282
Diffstat (limited to 'security/vuls/files/patch-subcmds_report.go')
-rw-r--r-- | security/vuls/files/patch-subcmds_report.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/security/vuls/files/patch-subcmds_report.go b/security/vuls/files/patch-subcmds_report.go new file mode 100644 index 000000000000..0ee637dbc66f --- /dev/null +++ b/security/vuls/files/patch-subcmds_report.go @@ -0,0 +1,24 @@ +--- subcmds/report.go.orig 2020-11-27 21:39:52 UTC ++++ subcmds/report.go +@@ -108,10 +108,10 @@ func (p *ReportCmd) SetFlags(f *flag.FlagSet) { + f.BoolVar(&c.Conf.Quiet, "quiet", false, "Quiet mode. No output on stdout") + f.BoolVar(&c.Conf.NoProgress, "no-progress", false, "Suppress progress bar") + +- wd, _ := os.Getwd() +- defaultConfPath := filepath.Join(wd, "config.toml") ++ defaultConfPath := filepath.Join("%%ETCDIR%%", "config.toml") + f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml") + ++ wd, _ := os.Getwd() + defaultResultsDir := filepath.Join(wd, "results") + f.StringVar(&c.Conf.ResultsDir, "results-dir", defaultResultsDir, "/path/to/results") + +@@ -177,7 +177,7 @@ func (p *ReportCmd) SetFlags(f *flag.FlagSet) { + + f.StringVar(&p.cveDict.Type, "cvedb-type", "", + "DB type of go-cve-dictionary (sqlite3, mysql, postgres, redis or http)") +- f.StringVar(&p.cveDict.SQLite3Path, "cvedb-sqlite3-path", "", "/path/to/sqlite3") ++ f.StringVar(&p.cveDict.SQLite3Path, "cvedb-sqlite3-path", "", "/var/db/vuls/cve.sqlite3") + f.StringVar(&p.cveDict.URL, "cvedb-url", "", + "http://go-cve-dictionary.com:1323 or DB connection string") + |