Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2012 10:12:46 -0700 (PDT)
From:      Dan Strick <mla_strick@att.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mla@mist.nodomain
Subject:   bin/166181: calendar -a does not work
Message-ID:  <201203161712.q2GHCkuN051597@mist.nodomain>
Resent-Message-ID: <201203161720.q2GHK3Lt067230@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203161712.q2GHCkuN051597>