NEXTSTEP
Title: Calendar Options Bug
Entry Number: 1699
Last Updated: 27 July 1995
Procedure Valid for Release: 3.1, 3.2, 3.3
Keywords: /usr/etc/calendar, /usr/lib/calendar
Question
When I try to run /usr/bin/calendar with an argument, it returns the following error:
/tmp/calendar: syntax error at line 1: `^' unexpected
What's going on?
Answer
There is a bug in /usr/bin/calendar which causes the command calendar - to fail. calendar - is normally run via the cron utility; it examines each user's ~/calendar file for things that will happen the next day, in order to send that user a reminder. calendar can be fixed with the following patch.
Line 20 of the file /usr/bin/calendar needs to be changed from:
( cat /etc/passwd; nidump passwd . ; /usr/lib/calendar -p ) | sort -t: -u +0 -1 |
to:
( cat /etc/passwd; nidump passwd . ) | sort -t: -u +0 -1 |
If you have network user accounts, change "nidump passwd ." to "nidump passwd /". This tells calendar to use the user list in the root NetInfo domain.