Subject: Re: misc/11473: ramdisk-rescuesmall of main trunk is full.
To: Simon Burge <simonb@wasabisystems.com>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 11/13/2000 10:32:40
>> but /etc/passwd is only for human eyes...of how much use is it
>> supposed to be?
>
>Another solution I'm looking at is to change the getpwent() function in
>distrib/utils/libhack to use the master.passwd format - it currently
>uses plain passwd format.

would this imply the reintroduction of the setpwnam() library call?
that one was really really useful.

>Going back to the first thing James said - it occurs to me that we
>could easily use sed(1) to convert from master.passwd format to passwd
>format...

sed 's/:[^:]*:\([^:]*:[^:]*:\)[^:]*:[^:]*:[^:]*:/:*:\1/' \
	/etc/master.passwd > /etc/passwd

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."