From owner-freebsd-bugs Wed Mar 19 0:20:15 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3322837B401 for ; Wed, 19 Mar 2003 00:20:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA9F443FA3 for ; Wed, 19 Mar 2003 00:20:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2J8KBNS023573 for ; Wed, 19 Mar 2003 00:20:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2J8KBod023572; Wed, 19 Mar 2003 00:20:11 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABF2837B401 for ; Wed, 19 Mar 2003 00:13:47 -0800 (PST) Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEB9B43F3F for ; Wed, 19 Mar 2003 00:13:46 -0800 (PST) (envelope-from fuyuki@hadaly.org) Received: from hadaly.dyndns.org ([61.123.32.121]) by t-mta7.odn.ne.jp with ESMTP id <20030319081345967.ZXPC.21631.t-mta7.odn.ne.jp@mta7.odn.ne.jp> for ; Wed, 19 Mar 2003 17:13:45 +0900 Received: from hadaly.dyndns.org (localhost [127.0.0.1]) by hadaly.dyndns.org (Postfix) with ESMTP id 78D4E20BF for ; Wed, 19 Mar 2003 17:13:45 +0900 (JST) Message-Id: <861y13bwp2.wl%fuyuki@hadaly.org> Date: Wed, 19 Mar 2003 17:13:45 +0900 From: Kimura Fuyuki To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/50118: calendar(1) dumps core if there is ./calendar/ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 50118 >Category: bin >Synopsis: calendar(1) dumps core if there is ./calendar/ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 19 00:20:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kimura Fuyuki >Release: FreeBSD 5.0-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD hadaly.dyndns.org 5.0-RELEASE-p4 FreeBSD 5.0-RELEASE-p4 #2: Fri Mar 7 13:26:51 JST 2003 root@hadaly.dyndns.org:/.2/obj/usr/src/sys/NS i386 >Description: calendar(1) dumps core if there is a directory named "calendar" in the current working directory. >How-To-Repeat: $ calendar calendar: no calendar file: ``calendar'' $ mkdir calendar $ calendar cpp: Internal error: Segmentation fault (program tradcpp0) Please submit a full bug report. See for instructions. >Fix: Need some stat(2)s, e.g: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/calendar/io.c?rev=1.22&content-type=text/x-cvsweb-markup But `f' mode for freopen looks nice for me: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/calendar/calendar.c?rev=1.27&content-type=text/x-cvsweb-markup >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message