Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg/add: fix strchr -> strrchr for the name in pkg_globmatch
Greg V committed 5 years ago
commit f27396b20243b110ab88a006675c74fc6f2410b0
parent 47df718
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -836,7 +836,7 @@ pkg_globmatch(char *pattern, const char *name)
		buf = strrchr(g.gl_pathv[i], '-');
		if (buf == NULL)
			continue;
-
		buf2 = strchr(g.gl_pathv[i], '/');
+
		buf2 = strrchr(g.gl_pathv[i], '/');
		if (buf2 == NULL)
			buf2 = g.gl_pathv[i];
		else