diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-11 08:39:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-11 08:39:51 +0000 |
commit | 64a85ec65d7906faaf75928e5a105b2ea315e154 (patch) | |
tree | abfaab4adbf630030fd30bde3ee39d0ef37595a1 /src | |
parent | cd5d44fa9dff14a5a670c1fe66778ad7627a506c (diff) | |
download | apk-tools-64a85ec65d7906faaf75928e5a105b2ea315e154.tar.gz apk-tools-64a85ec65d7906faaf75928e5a105b2ea315e154.tar.bz2 apk-tools-64a85ec65d7906faaf75928e5a105b2ea315e154.tar.xz apk-tools-64a85ec65d7906faaf75928e5a105b2ea315e154.zip |
fetch: do not create hardlinks to softlinks but to softlink targets
Otherwise the iso image will have softlinks which is not what we want
Diffstat (limited to 'src')
-rw-r--r-- | src/fetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |