Dan Lists: > > Postfix avoids using using getpwnam() because it is fundamentally > > broken on lots of systems (reporting "user does not exist" after > > failure to complete the request). > > > > You can force Postfix to use getpwnam() if you know that you > > will never use *SQL or LDAP etc. datbases: > > > > $ make makefiles CCARGS=-DNO_POSIX_GETPW_R > > $ make > > We are using mysql databases. > > > Alternatively, I can try to implement a configurable getpwnam_r() > > errno whitelist. This way I am off the hook, and you jump the > > hoops if you like. > > Taking a quick look at the source, it looks like 2.8 does not use the > thread-safe getpwnam_r. It does not appear that postfix is threaded, > so it should be safe to not use getpwnam_r.
It has NOTHING TO TO WITH THREADS. Postfix avoids using using getpwnam() because it is fundamentally broken on lots of systems (reporting "user does not exist" after failure to complete the request). Sheesh. Wietse