From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 16 17:20:04 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E0411065740 for ; Fri, 16 Mar 2012 17:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9088FC17 for ; Fri, 16 Mar 2012 17:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2GHK3iN067231 for ; Fri, 16 Mar 2012 17:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2GHK3Lt067230; Fri, 16 Mar 2012 17:20:03 GMT (envelope-from gnats) Resent-Date: Fri, 16 Mar 2012 17:20:03 GMT Resent-Message-Id: <201203161720.q2GHK3Lt067230@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Strick Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2AAF106566C for ; Fri, 16 Mar 2012 17:12:59 +0000 (UTC) (envelope-from dan_strick@sbcglobal.net) Received: from nm15.bullet.mail.sp2.yahoo.com (nm15.bullet.mail.sp2.yahoo.com [98.139.91.85]) by mx1.freebsd.org (Postfix) with SMTP id C401C8FC12 for ; Fri, 16 Mar 2012 17:12:59 +0000 (UTC) Received: from [72.30.22.93] by nm15.bullet.mail.sp2.yahoo.com with NNFMP; 16 Mar 2012 17:12:53 -0000 Received: from [68.142.194.243] by tm15.bullet.mail.sp2.yahoo.com with NNFMP; 16 Mar 2012 17:12:53 -0000 Received: from [66.94.237.123] by t1.bullet.mud.yahoo.com with NNFMP; 16 Mar 2012 17:12:53 -0000 Received: from [127.0.0.1] by omp1028.access.mail.mud.yahoo.com with NNFMP; 16 Mar 2012 17:12:53 -0000 Received: (qmail 29433 invoked from network); 16 Mar 2012 17:12:52 -0000 Received: from mist.nodomain (dan_strick@69.228.91.213 with login) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 16 Mar 2012 10:12:52 -0700 PDT Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.14.5/8.14.5) with ESMTP id q2GHCk4g051598; Fri, 16 Mar 2012 10:12:46 -0700 (PDT) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.14.5/8.14.5/Submit) id q2GHCkuN051597; Fri, 16 Mar 2012 10:12:46 -0700 (PDT) (envelope-from dan) Message-Id: <201203161712.q2GHCkuN051597@mist.nodomain> Date: Fri, 16 Mar 2012 10:12:46 -0700 (PDT) From: Dan Strick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: mla@mist.nodomain Subject: bin/166181: calendar -a does not work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Strick List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 17:20:04 -0000 >Number: 166181 >Category: bin >Synopsis: calendar -a does not work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 16 17:20:03 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Dan Strick >Release: FreeBSD 9.0-RELEASE i386 >Organization: >Environment: System: FreeBSD mist 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Thu Jan 26 02:06:21 PST 2012 root@mist:/sys/i386/compile/MIST i386 >Description: When I run "caledar -a", it seems to ignore my calendar file. >How-To-Repeat: Create a personal calendar file with test entries and run "calendar -a" as root. >Fix: I don't claim to understand exactly how this code was intended to work, but I made the problem go away by adding the line y = NULL; just before the last return statement in the walkthrough_dates() function in the source file dates.c. Here is the context diff: *** dates.c.ori Mon Jan 2 19:23:46 2012 --- dates.c Fri Mar 16 09:26:44 2012 *************** *** 401,406 **** --- 401,407 ---- *e = d->events; return (1); } + y = NULL; return (0); } >Release-Note: >Audit-Trail: >Unformatted: