Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed building with musl libc (ticket #685).

Maxim Dounin
December 24, 2014 11:06AM
details: http://hg.nginx.org/nginx/rev/fd6fd02f6a4d
branches:
changeset: 5955:fd6fd02f6a4d
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Dec 24 19:01:22 2014 +0300
description:
Fixed building with musl libc (ticket #685).

diffstat:

src/os/unix/ngx_user.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git a/src/os/unix/ngx_user.c b/src/os/unix/ngx_user.c
--- a/src/os/unix/ngx_user.c
+++ b/src/os/unix/ngx_user.c
@@ -31,8 +31,10 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char
struct crypt_data cd;

cd.initialized = 0;
+#ifdef __GLIBC__
/* work around the glibc bug */
cd.current_salt[0] = ~salt[0];
+#endif

value = crypt_r((char *) key, (char *) salt, &cd);


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed building with musl libc (ticket #685).

Maxim Dounin 708 December 24, 2014 11:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready