Bug 1017953
Summary: | calendar: no calendar file: ``calendar'' or ``~/.calendar/calendar'' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eduardo Minguez <eminguez> |
Component: | calendar | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | dcantrell, eminguez |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-18 13:16:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eduardo Minguez
2013-10-10 20:35:39 UTC
What package in Debian provides the calendar command you are talking about? The calendar package in Fedora is a direct port of the calendar command from the latest stable release of OpenBSD. The functionality you describe is exactly how the command operates on OpenBSD. You must create a local calendar file, which can include files from /usr/share/calendar, and then calendar will read that and display output. calendar is meant to be used by each user, so there is no system-wide calendar file. rpm -ql calendar shows /usr/share/calendar/ files. I think what debian binary does is to show calendar.all calendar if no parameter or calendar is specified. What package in Debian provides the calendar command? OK, this took a while to track down because I don't know how Debian is organized. But the 'bsdmainutils' package in Debian appears to provide the calendar command. Like this package, they are using the OpenBSD source. However they add some nonstandard changes to the package that are specific to Debian. In particular, you are referring to: + (fdin = open(calendarFile, O_RDONLY)) != -1)) { + /* Try the system-wide calendar file. */ + if ((fdin = open(_PATH_DEFAULT, O_RDONLY)) == -1) { + errx(1, "no calendar file: ``%s'' or ``~/%s/%s''", + calendarFile, calendarHome, calendarFile); + } + } In the io.c file. Which also relies on a new /etc/calendar structure for a system-wide calendar. I'm not interested in carrying these nonstandard extensions to the calendar(1) command. The main intent was to bring the BSD calendar command to Fedora systems. Please follow the instructions in the man page on how to use it. |