Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Prevent SIGSEGV with 'pkg version' with packaged base.
Glen Barber committed 7 years ago
commit bcef3f2435abfc0bd8ebe61faf769d967ed8c176
parent a151ff4
1 file changed +3 -0
modified src/version.c
@@ -692,6 +692,9 @@ validate_origin(const char *portsdir, const char *origin)
	buf = strrchr(origin, '/');
	buf++;

+
	if (strcmp(origin, "base") == 0)
+
		return (false);
+

	k = kh_get_ports(cat->ports, buf);

	return (k != kh_end(cat->ports));