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_scan.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_scan.go')
-rw-r--r-- | security/vuls/files/patch-subcmds_scan.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/vuls/files/patch-subcmds_scan.go b/security/vuls/files/patch-subcmds_scan.go new file mode 100644 index 000000000000..c622cbb7fdb4 --- /dev/null +++ b/security/vuls/files/patch-subcmds_scan.go @@ -0,0 +1,22 @@ +--- subcmds/scan.go.orig 2020-11-27 21:39:52 UTC ++++ subcmds/scan.go +@@ -64,8 +64,8 @@ func (p *ScanCmd) SetFlags(f *flag.FlagSet) { + f.BoolVar(&c.Conf.Debug, "debug", false, "debug mode") + f.BoolVar(&c.Conf.Quiet, "quiet", false, "Quiet mode. No output on stdout") + +- wd, _ := os.Getwd() +- defaultConfPath := filepath.Join(wd, "config.toml") ++ wd, _ := os.Getwd() ++ defaultConfPath := filepath.Join("%%ETCDIR%%", "config.toml") + f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml") + + defaultResultsDir := filepath.Join(wd, "results") +@@ -74,7 +74,7 @@ func (p *ScanCmd) SetFlags(f *flag.FlagSet) { + defaultLogDir := util.GetDefaultLogDir() + f.StringVar(&c.Conf.LogDir, "log-dir", defaultLogDir, "/path/to/log") + +- defaultCacheDBPath := filepath.Join(wd, "cache.db") ++ defaultCacheDBPath := "/var/db/vuls/cache.db" + f.StringVar(&c.Conf.CacheDBPath, "cachedb-path", defaultCacheDBPath, + "/path/to/cache.db (local cache of changelog for Ubuntu/Debian)") + |