summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-09-24 17:18:26 +0200
committerMax Rees <maxcrees@me.com>2020-06-02 19:00:38 -0500
commit4bf076391245450e2667eb60510b94faeb686a7f (patch)
tree8ee6c31ef00c213dccabb05dbc485bd267820d3e
parentaf90437eea53307a02f20ba4b97a64d8d8d15b80 (diff)
downloadca-certificates-4bf076391245450e2667eb60510b94faeb686a7f.tar.gz
ca-certificates-4bf076391245450e2667eb60510b94faeb686a7f.tar.bz2
ca-certificates-4bf076391245450e2667eb60510b94faeb686a7f.tar.xz
ca-certificates-4bf076391245450e2667eb60510b94faeb686a7f.zip
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);