Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Ask realpath to allocate memory.
Vsevolod Stakhov committed 12 years ago
commit 4fee37257c594707bdc79c83fa089bb4d898ae3e
parent ce571d1
1 file changed +1 -1
modified libpkg/pkg_jobs.c
@@ -154,7 +154,7 @@ pkg_jobs_maybe_match_file(struct job_pattern *jp, const char *pattern)
			strcmp(dot_pos, "tbz") == 0 ||
			strcmp(dot_pos, "tgz") == 0 ||
			strcmp(dot_pos, "tar") == 0) {
-
			if ((pkg_path = realpath(pattern, pkg_path)) != NULL) {
+
			if ((pkg_path = realpath(pattern, NULL)) != NULL) {
				/* Dot pos is one character after the dot */
				int len = dot_pos - pattern;