> How often does the code actually reference the UID/GID?  Could you have a
> function to look it up and cache it in a static once found?

sounds great, the best solution at this moment.

> A quick check and it looks like it's only referenced when adding a user or
> updating the tcp.smtp.cdb file.  There are a few other references, but the
> common things (like vchkpw and vdelivermail) don't appear to make use of it.
> Probably not a big deal to use getpwnam.

for packaging vpopmail as rpm it is, because no need to use a fixed
uid/gid in all systems.


Itamar Reis Peixoto

e-mail/msn: ita...@ispbrasil.com.br
sip: ita...@ispbrasil.com.br
skype: itamarjp
icq: 81053601
+55 11 4063 5033
+55 34 3221 8599


Reply via email to