aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tengine/musl-crypt-fix.patch
blob: 2f11fe2e9d66e3c10ab74c370985cd0585c713d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- nginx-1.4.4/src/os/unix/ngx_user.c.orig
+++ nginx-1.4.4/src/os/unix/ngx_user.c
@@ -31,8 +31,10 @@
     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);