From owner-p4-projects Tue Sep 3 19:52:38 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6415737B401; Tue, 3 Sep 2002 19:52:34 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D056137B400 for ; Tue, 3 Sep 2002 19:52:33 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF3443E81 for ; Tue, 3 Sep 2002 19:52:33 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g842qXJU046637 for ; Tue, 3 Sep 2002 19:52:33 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g842qX1J046634 for perforce@freebsd.org; Tue, 3 Sep 2002 19:52:33 -0700 (PDT) Date: Tue, 3 Sep 2002 19:52:33 -0700 (PDT) Message-Id: <200209040252.g842qX1J046634@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 17020 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17020 Change 17020 by peter@peter_mckinley on 2002/09/03 19:51:57 Work around GEOM/devfs/specfs/whatever bug. Do not use O_EXCL as it leaks a permanent exclusive reference. Affected files ... .. //depot/projects/ia64/sbin/gpt/gpt.c#10 edit Differences ... ==== //depot/projects/ia64/sbin/gpt/gpt.c#10 (text+ko) ==== @@ -285,7 +285,7 @@ return (-1); found: - fd = open(device_name, (readonly) ? O_RDONLY : O_RDWR|O_EXCL); + fd = open(device_name, (readonly) ? O_RDONLY : O_RDWR); if (fd == -1) return (-1); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message