From owner-cvs-all@FreeBSD.ORG Tue Mar 14 19:29:46 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3B316A45D; Tue, 14 Mar 2006 19:29:46 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE89A43D45; Tue, 14 Mar 2006 19:29:45 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2EJTjbZ077465; Tue, 14 Mar 2006 19:29:45 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2EJTjli077464; Tue, 14 Mar 2006 19:29:45 GMT (envelope-from rwatson) Message-Id: <200603141929.k2EJTjli077464@repoman.freebsd.org> From: Robert Watson Date: Tue, 14 Mar 2006 19:29:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 19:29:46 -0000 rwatson 2006-03-14 19:29:45 UTC FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c Log: If fifo_open() is called with a negative file descriptor, return EINVAL rather than panicking later. This can occur if the kernel calls vn_open() on a fifo, as there will be no associated file descriptor, and therefore the file descriptor operations cannot be modified to point to the fifo operation set. MFC after: 3 days Reported by: Martin PR: 94278 Revision Changes Path 1.133 +2 -0 src/sys/fs/fifofs/fifo_vnops.c