ports/security/vuls/files/patch-commands_configtest.go
Richard Gallamore 82fd28fcab Vuls is an agentless vulnerability scanner written in golang.
It can scan localhost or remote hosts via SSH. Vuls has a Terminal-Based User
Interface(TUI) to display the scan results.

Vuls' features include:

* scan for vulnerabilitie in Ubuntu, Debian, CentOS, Amazon Linux, RHEL, Oracle Linux, FreeBSD and Raspbian;
* scan middleware that are not included in OS package management;
* nondestructive testing;
* email and slack notification.

WWW: https://github.com/future-architect/vuls

PR:		220328
Submitted by:	Alexandru Ciobanu <iscandr@gmail.com> (maintainer)
Reviewed by:	matthew (mentor), mat
Approved by:	matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D11746
2017-07-28 18:28:41 +00:00

21 lines
586 B
Go

--- commands/configtest.go.orig 2017-06-23 15:51:48 UTC
+++ commands/configtest.go
@@ -20,8 +20,6 @@ package commands
import (
"context"
"flag"
- "os"
- "path/filepath"
"github.com/google/subcommands"
@@ -68,8 +66,7 @@ func (*ConfigtestCmd) Usage() string {
// SetFlags set flag
func (p *ConfigtestCmd) SetFlags(f *flag.FlagSet) {
- wd, _ := os.Getwd()
- defaultConfPath := filepath.Join(wd, "config.toml")
+ defaultConfPath := "%%ETCDIR%%/config.toml"
f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml")
defaultLogDir := util.GetDefaultLogDir()