From 978013bfbf0c4b20da22e3a942bd9acfb07de01b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 27 Oct 2012 09:42:26 +0200 Subject: [PATCH] unpack: match correctly symlinks with absolute path. --- lib/package_unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index a2552835..893ae86d 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -472,7 +472,7 @@ unpack_archive(struct xbps_handle *xhp, assert(buf2); free(p3); } else { - buf2 = xbps_xasprintf(".%s", tgtlnk); + buf2 = strdup(tgtlnk); assert(buf2); } if (strcmp(xhp->rootdir, "/"))