Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Ask realpath to allocate memory.
Vsevolod Stakhov committed 12 years ago
commit 4fee37257c594707bdc79c83fa089bb4d898ae3e
parent ce571d1abebf7fc42670d4bf8478f1c44be25fa9
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;