Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix Fix dirrm and dirrmtry for directories beginning with a /
Philippe Pepiot committed 14 years ago
commit 547ee73ce9d2026c74be0abca9710fd25ddca715
parent 526d55d
1 file changed +1 -1
modified libpkg/pkg_ports.c
@@ -198,7 +198,7 @@ ports_parse_plist(struct pkg *pkg, char *plist)
					len--;
				}

-
				if (path[0] == '/')
+
				if (buf[0] == '/')
					snprintf(path, sizeof(path), "%s/", buf);
				else
					snprintf(path, sizeof(path), "%s%s%s/", prefix, slash, buf);