Re: ypset(8) attempts to bind to Weird IP (and possible solution)

2004-01-19 Thread Saint Aardvark the Carpeted
Matthew Seaman disturbed my sleep to write: > Please do submit a PR with your analysis and a patch. It's slightly > perturbing that no-one spotted this a long time ago, but these things > happen from time to time. Thanks for taking the time to reply! I'm glad to find out I'm not completely wrong

Re: ypset(8) attempts to bind to Weird IP (and possible solution)

2004-01-19 Thread Matthew Seaman
On Sun, Jan 18, 2004 at 01:19:58PM -0800, Saint Aardvark the Carpeted wrote: > The problem seems to come in at lines 142/143: before this, > sin.sin_addr.s_addr is localhost (as set at line 130), as is > hent->h_addr_list[0][0]. *After* this, it's set with the Weird IP, > bind_tohost() is calle

ypset(8) attempts to bind to Weird IP (and possible solution)

2004-01-18 Thread Saint Aardvark the Carpeted
A while back I came across some strange behaviour with ypset(8). I was having trouble at work making a host bind to our NIS server, so I thought I'd try using ypset. When running these commands: domainname [domain] ypbind ypset -h localhost -d [domain] 192.168.0.254 and