From owner-freebsd-bugs Tue Aug 25 07:10:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02133 for freebsd-bugs-outgoing; Tue, 25 Aug 1998 07:10:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02075 for ; Tue, 25 Aug 1998 07:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA09216; Tue, 25 Aug 1998 07:10:01 -0700 (PDT) Received: from yorikke.arb-phys.uni-dortmund.de (yorikke.arb-phys.uni-dortmund.de [192.109.44.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01229 for ; Tue, 25 Aug 1998 07:00:20 -0700 (PDT) (envelope-from wb@yorikke.arb-phys.uni-dortmund.de) Received: (from wb@localhost) by yorikke.arb-phys.uni-dortmund.de (8.9.1/8.9.1) id PAA17757; Tue, 25 Aug 1998 15:59:32 +0200 (MET DST) (envelope-from wb) Message-Id: <199808251359.PAA17757@yorikke.arb-phys.uni-dortmund.de> Date: Tue, 25 Aug 1998 15:59:32 +0200 (MET DST) From: "Wilhelm B. Kloke" Reply-To: wb@yorikke.arb-phys.uni-dortmund.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7742: fclose(3) dumps core on NULL Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7742 >Category: bin >Synopsis: fclose(3) dumps core on NULL >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 25 07:10:01 PDT 1998 >Last-Modified: >Originator: Wilhelm B. Kloke >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD 3.0-CURRENT i386 >Description: I found for the 2nd time that installing a program failed for fclose coredumping when ivoked with NULL. (teTeX-0.9) >How-To-Repeat: Easily. >Fix: The man page doe not say anything on this. But it seems programming practice, closing a file after open, even if the open failed. So the library fclose should return gracefully when invoked with NULL. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message