Re: getent(1) hosts enumeration defunc

2014-10-19 Thread Ingo Schwarze
Hi Theo, Theo de Raadt wrote on Sun, Oct 19, 2014 at 07:35:06AM -0600: > Florian Obser wrote: >> You can get rid of sethostent(3)/endhostent(3) at the same time. > Those have to remain stubs for a while longer, because there are > ports which poke at them. Oh the joys of terseness. Florian mea

Re: getent(1) hosts enumeration defunc

2014-10-19 Thread Theo de Raadt
>You can get rid of sethostent(3)/endhostent(3) at the same time. Those have to remain stubs for a while longer, because there are ports which poke at them.

Re: getent(1) hosts enumeration defunc

2014-10-19 Thread Florian Obser
Hi Ingo, On Sun, Oct 19, 2014 at 02:24:27AM +0200, Ingo Schwarze wrote: > Hi Philip, > > Philip Guenther wrote on Sat, Oct 18, 2014 at 04:38:09PM -0700: > > > Maybe we just fix getent(1) to return an error like it does for ethers? > > Whatever we do with gethostent(3) - maybe it's really expend

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Philip Guenther
On Sat, Oct 18, 2014 at 5:24 PM, Ingo Schwarze wrote: > Index: getent.c > === > RCS file: /cvs/src/usr.bin/getent/getent.c,v > retrieving revision 1.6 > diff -u -p -r1.6 getent.c > --- getent.c30 Mar 2013 14:03:08 - 1.6 >

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Theo de Raadt
>> Maybe we just fix getent(1) to return an error like it does for ethers? > >Whatever we do with gethostent(3) - maybe it's really expendable, >maybe tons of ports depend on it, who knows - i'm fine with >removing hosts enumeration support from getent(1). > >Almost the same can be accomplished wit

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Ingo Schwarze
Hi Philip, Philip Guenther wrote on Sat, Oct 18, 2014 at 04:38:09PM -0700: > Maybe we just fix getent(1) to return an error like it does for ethers? Whatever we do with gethostent(3) - maybe it's really expendable, maybe tons of ports depend on it, who knows - i'm fine with removing hosts enumer

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Theo de Raadt
> Maybe we just fix getent(1) to return an error like it does for ethers? That is my take on this too. /etc/networks scanning serves no modern purpose, and programs that do so only show their age.

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Philip Guenther
On Saturday, October 18, 2014, Ingo Schwarze wrote: > > this summer, Marcus MERIGHI reported that gethostent(3) was completely > destroyed during the switch to asr, i guess unintentionally > Does someone have a legitimate use for gethostent(), even the simple version that just uses /etc/hosts? I

Re: getent(1) hosts enumeration defunc

2014-10-18 Thread Ingo Schwarze
Hi, this summer, Marcus MERIGHI reported that gethostent(3) was completely destroyed during the switch to asr, i guess unintentionally. Until somebody writes something better, i suggest to resurrect the last working version from the Attic, file gethostnamadr.c,v 1.73. I'm not attempting to do any

Re: getent(1) hosts enumeration defunc

2014-06-29 Thread Marcus MERIGHI
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 st...@openbsd.org (Stuart Henderson), 2013.04.26 (Fri) 13:27 (CEST):

Re: getent(1) hosts enumeration defunc (getent.c 1.6)

2013-04-26 Thread Florian Obser
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

Re: getent(1) hosts enumeration defunc (getent.c 1.6)

2013-04-26 Thread Stuart Henderson
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 > +++ >

getent(1) hosts enumeration defunc (getent.c 1.6)

2013-04-26 Thread MERIGHI Marcus
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 b