summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-09-24 17:18:26 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-24 17:18:26 +0200
commit33042b0af9d4139959a1b9a7179dd3843ea00f0d (patch)
tree933693c0ca90147d4e078bab027a62e01e2b589e
parent6ca0ab1fe3c69f94a165c48785ab09b2a81e3931 (diff)
downloadca-certificates-33042b0af9d4139959a1b9a7179dd3843ea00f0d.tar.gz
ca-certificates-33042b0af9d4139959a1b9a7179dd3843ea00f0d.tar.bz2
ca-certificates-33042b0af9d4139959a1b9a7179dd3843ea00f0d.tar.xz
update-ca: fix build with newer musl
musl removed SYMLINK_MAX define[1]. Use PATH_MAX instead for symlink target. [1]: http://git.musl-libc.org/cgit/musl/commit/?id=767f7a1091af3a3dcee2f7a49d0713359a81961c
-rw-r--r--update-ca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-ca.c b/update-ca.c
index 641fd64..7bb4f1b 100644
--- a/update-ca.c
+++ b/update-ca.c
@@ -196,7 +196,7 @@ static void proc_localglobaldir(const char *fullpath, struct hash *h, int tmpfil
static void proc_etccertsdir(const char* fullpath, struct hash* h, int tmpfile_fd)
{
- char linktarget[SYMLINK_MAX];
+ char linktarget[PATH_MAX];
ssize_t linklen;
linklen = readlink(fullpath, linktarget, sizeof(linktarget)-1);