From 64a85ec65d7906faaf75928e5a105b2ea315e154 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 11 Jun 2009 08:39:51 +0000 Subject: fetch: do not create hardlinks to softlinks but to softlink targets Otherwise the iso image will have softlinks which is not what we want --- src/fetch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/fetch.c') diff --git a/src/fetch.c b/src/fetch.c index 09b4e97..5cea5db 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -90,7 +90,9 @@ static int fetch_package(struct fetch_ctx *fctx, fd = STDOUT_FILENO; } else { if ((fctx->flags & FETCH_LINK) && apk_url_local_file(infile)) { - if (link(infile, outfile) == 0) + char real_infile[256]; + readlink(infile, real_infile, sizeof(real_infile)); + if (link(real_infile, outfile) == 0) return 0; } fd = creat(outfile, 0644); -- cgit v1.2.3