Re: "bug in glibc"

2013-03-31 Thread Justin Cormack
On Sun, Mar 31, 2013 at 4:12 PM, Igor Sysoev wrote: > On Mar 31, 2013, at 14:33 , Justin Cormack wrote: > > > There is a note in src/os/unix/ngx_user.c about a bug in glibc for > crypt_r: > > > > /* work around the glibc bug */ > > cd.current_salt

Re: "bug in glibc"

2013-03-31 Thread Igor Sysoev
On Mar 31, 2013, at 14:33 , Justin Cormack wrote: > There is a note in src/os/unix/ngx_user.c about a bug in glibc for crypt_r: > > /* work around the glibc bug */ > cd.current_salt[0] = ~salt[0]; > > value = crypt_r((char *) key, (char *) salt, &cd); > &g

"bug in glibc"

2013-03-31 Thread Justin Cormack
There is a note in src/os/unix/ngx_user.c about a bug in glibc for crypt_r: /* work around the glibc bug */ cd.current_salt[0] = ~salt[0]; value = crypt_r((char *) key, (char *) salt, &cd); I was wondering if anyone knew what the bug was, as I am running on a platform (Musl