From owner-cvs-lib Thu Oct 16 22:01:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19813 for cvs-lib-outgoing; Thu, 16 Oct 1997 22:01:33 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19778; Thu, 16 Oct 1997 22:01:12 -0700 (PDT) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id VAA13537; Thu, 16 Oct 1997 21:59:56 -0700 (PDT) Date: Thu, 16 Oct 1997 21:59:56 -0700 (PDT) Message-Id: <199710170459.VAA13537@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/rpc get_myaddress.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 1997/10/16 21:59:56 PDT Modified files: lib/libc/rpc get_myaddress.c Log: Fix two bugs which caused various RPC programs (mountd, nfsd, ...) to fail under certain circumstances. 1. In one spot, the ifr_flags member was being examined in the wrong structure, thus it contained garbage. On a machine in which only the loopback interface was up, this caused everything that wanted to talk to the portmapper to fail -- a particular problem with laptops, where the pccard ethernet interface is likely to come up long after the attempt to start mountd, nfsd, amd, etc. 2. Compounding the above problem, get_myaddress() returned a successful status even though it failed to find an address that it considered good enough. Revision Changes Path 1.14 +3 -3 src/lib/libc/rpc/get_myaddress.c