Commit 33042b0a authored by Natanael Copa's avatar Natanael Copa
Browse files

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
parent 6ca0ab1f
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment