-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to parse yum check-update #32
Comments
Thanks for reporting. |
Sorry for the late reply. Here it is:
|
Thanks @AlessioMartorelli There is one more thing that I want to ask.
|
Thanks |
ugly but works, edit redhat.go as below, and "go build github.com/future-architect/vuls" did the trick for me. diff --git a/scan/redhat.go b/scan/redhat.go
index 97042d7..6f6245f 100644
--- a/scan/redhat.go
+++ b/scan/redhat.go
@@ -504,7 +504,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (CvePacksList, err
advIDPackNamesList, err := o.parseYumUpdateinfoListAvailable(r.Stdout)
// get package name, version, rel to be upgrade.
- cmd = "yum check-update --security"
+ cmd = "yum check-update --security | sed '/Obsoleting/,$d'"
r = o.ssh(util.PrependProxyEnv(cmd), sudo)
if !r.isSuccess(0, 100) {
//returns an exit code of 100 if there are available updates.``` |
Hi @AlessioMartorelli
Hi @trocster
|
Hi, @AlessioMartorelli Merged to master.
Thanks. |
I'm running a normal
vuls scan
on a centos host. I'm getting the following:[Apr 14 16:57:00] ERROR [localhost] Failed to scan. err: user@myserver:22: Failed to parse yum check-update. err: Failed to parse yum check update line: Percona-Server-shared-51--
The command that gave a problem is:
[Apr 14 16:57:00] DEBUG [sft007:22] SSH executed. cmd: set -o pipefail; echo xxxxxx | sudo -S yum check-update, status: <nil>
Please do let me know if I can give you more details.
The text was updated successfully, but these errors were encountered: