I agree parsing /etc/passwd every time is expensive

a config file file will be welcome.




On Mon, Aug 17, 2009 at 1:18 PM, Matt Brookings<m...@inter7.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Itamar Reis Peixoto wrote:
>> currently vpopmail user and vchkpw group's need's to be created before
>> running ./configure.
>>
>> this is not good for packaging it as rpm, because in rpm the user and
>> group are created in %post section (after vpopmail installed)
>
> I'm pretty sure there are RPMs that handle this situation already.  How
> do they do it?
>
>> any chance to improve this with automatic detection uid and gid using
>> getpwnam function ?
>
> I'm not sure if this would be considered an improvement.  Parsing /etc/passwd
> every time a vpopmail binary is invoked could be expensive on some systems.
>
> I'm looking at adding a configuration file to vpopmail for the 5.5 branch that
> will contain all the stuff that usually you have to set at configure time.  
> The
> UID/GID would be contained here as well, but that's not currently available.
> Just an OT about the config: It will be compiled so as to be very quick to 
> load.
>
> Thoughts anyone?
> - --
> /*
>    Matt Brookings <m...@inter7.com>       GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkqJgssACgkQIwet2/rgZyzmXQCeOl04M9MG0QVTyPUpXjxj6AIa
> wLUAn0LhtOYsOjPaDYLmm27vpMpWaRMp
> =0abu
> -----END PGP SIGNATURE-----
>



-- 
------------

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

!DSPAM:4a8986c832711158417373!

Reply via email to