HomeFreeBSD

Fix calendar -a processing of files included in the user's home directory

Description

Fix calendar -a processing of files included in the user's home directory

The existing code performed a chdir() into the home directory, but the
parser fell back to using the invoking user's home directory as the base
directory for the search for an include file.

Since use of the -a option is limited to UID==0, the directory searched
was typically ~root/.calendar, not the .calendar directory of the user
whose file is being processed.

PR: 205580
Reported by: greg.bal4@gmail.com (Greg Balfour)
MFC after: 3 days

Details

Provenance
seAuthored on Oct 29 2020, 8:26 AM
Parents
rG9abc7621384f: CI: switch to qemu42 package
Branches
Unknown
Tags
Unknown