This checkin is breaking about 2500 of our scripts, due to
a change in calling notation for the "rpm" parameter.
Up to now, the rpm parm was required to be of the format
(using the example) "gnutls-utils~1.4.1~3"

The submitted fix changes that to 1.4.1~3.

I believe the fix was trying to address a different
problem we see, introduced by adding newlines to the
rpm kb database.

Unless someone objects, I'd prefer to revert the
parameter calling structure, along with an appropriate
fix to account for the added newlines in the kb.

Issues?

Thomas

> +
> +# Example call: isrpmvuln(pkg:"gnutls-utils", rpm:"1.4.1~3", rls:"FC6")
> +
>  function isrpmvuln(pkg, rpm, rls) {
>      # Check that we have the data for this release.
>      kbrls = get_kb_item("ssh/login/release");
> @@ -27,7 +30,8 @@
>      }
>      rpms = get_kb_item("ssh/login/rpms");
>      if(!rpms) return(0);
> -    pat = string(";(", pkg, "~[^;]+);");
> +#   pat = string(";(", pkg, "~[^;]+);");
> +    pat = string(pkg, "~([^;]+);");
>      matches = eregmatch(pattern:pat, string:rpms);
>      if(isnull(matches)) {
>       return(0);
> 
> _______________________________________________
> Openvas-commits mailing list
> [EMAIL PROTECTED]
> http://lists.wald.intevation.org/mailman/listinfo/openvas-commits
> 

_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel

Reply via email to