unpack: match correctly symlinks with absolute path.

This commit is contained in:
Juan RP 2012-10-27 09:42:26 +02:00
parent 264c704529
commit 978013bfbf

View File

@ -472,7 +472,7 @@ unpack_archive(struct xbps_handle *xhp,
assert(buf2); assert(buf2);
free(p3); free(p3);
} else { } else {
buf2 = xbps_xasprintf(".%s", tgtlnk); buf2 = strdup(tgtlnk);
assert(buf2); assert(buf2);
} }
if (strcmp(xhp->rootdir, "/")) if (strcmp(xhp->rootdir, "/"))