Subject: re: On pw_dup(3), and development in general (was: Re: CVS commit: src/lib/libc)
To: Perry E. Metzger <perry@piermont.com>
From: matthew green <mrg@eterna.com.au>
List: tech-userlevel
Date: 09/16/2003 05:50:31
   
   Jaromir Dolecek <jdolecek@NetBSD.org> writes:
   > I have the same impression and fully agree with Klaus. Please, let's
   > move pw_dup(3) to libutil NOW. I see no reason to include in libc such
   > rarely used utility function. Once the reentrancy/thread-safety
   > changes would be in, you'd just use suitable getpwFOO_r() instead.
   > 
   > Please don't add new stuff to libc, unless it's clearly vital
   > functionality which can't be elsewhere.
   
   Libutil is not intended for things like this at all -- it is for
   things like login handling, pty hacking, etc. People keep throwing the
   wrong sorts of things into libutil and it gets rather annoying.


pw_dup(3) fits PERECTLY with the "login handling" you say above.  infact
every other pw_*(3) function is already in libutil!

what is getting rather annoying is people adding stuff to netbsd while
discussions are still happening about how that should be!


.mrg.