Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Package name in auditfile can use globing.
Julien Laffaye committed 14 years ago
commit 54df9dcc46d0b346d3ee61908698c3670fea8973
parent d0c031b
1 file changed +2 -1
modified pkg/audit.c
@@ -7,6 +7,7 @@
#include <archive_entry.h>
#include <err.h>
#include <fcntl.h>
+
#include <fnmatch.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
@@ -244,7 +245,7 @@ is_vulnerable(struct audit_head *h, struct pkg *pkg)
	);

	SLIST_FOREACH(e, h, next) {
-
		if (strcmp(pkgname, e->pkgname) != 0)
+
		if (fnmatch(e->pkgname, pkgname, 0) != 0)
			continue;

		res1 = match_version(pkgversion, &e->v1);