bin/166181: calendar -a does not work
Dan Strick
mla_strick at att.net
Fri Mar 16 17:20:04 UTC 2012
>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 at 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:
More information about the freebsd-bugs
mailing list