diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-24 17:18:26 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-24 17:18:26 +0200 |
commit | 33042b0af9d4139959a1b9a7179dd3843ea00f0d (patch) | |
tree | 933693c0ca90147d4e078bab027a62e01e2b589e | |
parent | 6ca0ab1fe3c69f94a165c48785ab09b2a81e3931 (diff) | |
download | 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.c | 2 |
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); |