mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
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)
22 lines
987 B
Go
22 lines
987 B
Go
--- 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)")
|
|
|