From owner-cvs-src@FreeBSD.ORG Mon Aug 20 13:00:48 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CC1216A468; Mon, 20 Aug 2007 13:00:48 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7D13013C4CC; Mon, 20 Aug 2007 13:00:48 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l7KD0mlu079048; Mon, 20 Aug 2007 13:00:48 GMT (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7KD0mkV079047; Mon, 20 Aug 2007 13:00:48 GMT (envelope-from truckman) Message-Id: <200708201300.l7KD0mkV079047@repoman.freebsd.org> From: Don Lewis Date: Mon, 20 Aug 2007 13:00:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/usr.sbin/rpc.statd file.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 13:00:48 -0000 truckman 2007-08-20 13:00:48 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) usr.sbin/rpc.statd file.c Log: MFC file.c 1.8 If the mmap() call in rpc.statd fails, rpc.statd prints a warning message and then dumps core because the subsequent code assumes that mmap() succeeded. Since rpc.statd does not have fallback code to implement the functionality needed to operate on the status file if it is not memory mapped, rpc.statd should use err() to force the process to exit if the mmap() call fails. PR: bin/115430 (mmap() failure previously fixed in statd.c 1.12.8.2) Revision Changes Path 1.7.10.1 +1 -1 src/usr.sbin/rpc.statd/file.c