aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2018-05-23 16:38:16 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2018-05-23 16:38:16 +0300
commit1ef5c9ce6f03907dad1677d25f108d2bf59a5c15 (patch)
tree6cea560111760cc3f01bc3949db6ea6daf40e44b /src/os/unix
parent5568a6598d7ec830a6759c6ab0419a50b4ab3056 (diff)
downloadnginx-1ef5c9ce6f03907dad1677d25f108d2bf59a5c15.tar.gz
nginx-1ef5c9ce6f03907dad1677d25f108d2bf59a5c15.zip
Removed glibc crypt_r() bug workaround (ticket #1469).
The bug in question was fixed in glibc 2.3.2 and is no longer expected to manifest itself on real servers. On the other hand, the workaround causes compilation problems on various systems. Previously, we've already fixed the code to compile with musl libc (fd6fd02f6a4d), and now it is broken on Fedora 28 where glibc's crypt library was replaced by libxcrypt. So the workaround was removed.
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_user.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/os/unix/ngx_user.c b/src/os/unix/ngx_user.c
index 7ebe2b576..b3d81d07b 100644
--- a/src/os/unix/ngx_user.c
+++ b/src/os/unix/ngx_user.c
@@ -21,10 +21,6 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
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);