Hello, (this was on tech@, therefore reviving it here.)
getent(1) manual and output stil do not match. It does not enumerate for database ``hosts'' and does not return 3 as exit status, as stated by the man page. Bye, Marcus [email protected] (Stuart Henderson), 2013.04.26 (Fri) 13:27 (CEST): > On 2013/04/26 12:57, MERIGHI Marcus wrote: > > there is no more listing (enumerating) of hosts entries. Suspect: [1] > > +++++++ > > $ getent hosts; echo $? > > 0 > > $ getent hosts fifi > > 127.0.0.1 fifi > > $ getent ethers > > getent: Enumeration not supported on ethers > > +++++++ > > So this is inconsistent at least and it introduced different behaviour. > > > > I could provide a man page fix and/or a current.html entry but fixing > > getent.c is beyond my coding foo. > > > > [1] > > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/getent/getent.c.diff?r1=1.5;r2=1.6 > > > > OpenBSD 5.3-current (GENERIC.MP) #103: Wed Apr 24 09:33:02 MDT 2013 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > > > This wasn't caused by that commit; previously there was no output > but exit code 127. > > This does work as expected on a Mar 12 system, so this was more likely > caused by the switch to asr. [email protected] (Florian Obser), 2013.04.26 (Fri) 13:31 (CEST): > On Fri, Apr 26, 2013 at 12:57:32PM +0200, MERIGHI Marcus wrote: > > there is no more listing (enumerating) of hosts entries. Suspect: [1] > [...] > > [1] > > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/getent/getent.c.diff?r1=1.5;r2=1.6 > > > > OpenBSD 5.3-current (GENERIC.MP) #103: Wed Apr 24 09:33:02 MDT 2013 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > > > nope, this change works fine on a Mar 13 snap, I suspect asr
