Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix parsing of plist with @cwd lines with no arguments
Baptiste Daroussin committed 15 years ago
commit 12b03b78b9c36ffae48614b2d31e0fcc796d97a2
parent eb4c34cf6adc5b2207b342fc7b96c7cb35cdf222
1 file changed +4 -2
modified libpkg/pkg_ports.c
@@ -53,9 +53,11 @@ ports_parse_plist(struct pkg *pkg, char *plist)

	for (i = 0; i <= nbel; i++) {
		if (plist_p[0] == '@') {
-
			if (STARTS_WITH(plist_p, "@cwd ")) {
+
			if (STARTS_WITH(plist_p, "@cwd")) {
				buf = plist_p;
-
				buf += 5;
+
				buf += 4;
+
				while (isspace(buf[0]))
+
					buf++;
				/* with no arguments default to the original
				 * prefix */
				if (buf[0] == '\0')