From c96fbc1dba5922a93267eeb7cf0f9e38bd202209 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Fri, 27 Jan 2017 18:42:14 +0900 Subject: [PATCH] Fix yum updateinfo options see #281 --- scan/redhat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan/redhat.go b/scan/redhat.go index 45969762..b0d7c610 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -600,7 +600,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never list-security --security" } else { - cmd = "yum --color=never updateinfo list available --security" + cmd = "yum --color=never --security updateinfo list updates" } r = o.exec(util.PrependProxyEnv(cmd), o.sudo()) if !r.isSuccess() { @@ -644,7 +644,7 @@ func (o *redhat) scanUnsecurePackagesUsingYumPluginSecurity() (models.VulnInfos, if o.Distro.Family == "rhel" && major == 5 { cmd = "yum --color=never info-sec" } else { - cmd = "yum --color=never updateinfo --security update" + cmd = "yum --color=never --security updateinfo updates" } r = o.exec(util.PrependProxyEnv(cmd), o.sudo()) if !r.isSuccess() {