[Bug 205580] Running "calendar -a" as root fails when user calendar files contain #include

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 29 08:27:32 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205580

--- Comment #3 from commit-hook at FreeBSD.org ---
A commit references this bug:

Author: se
Date: Thu Oct 29 08:26:39 UTC 2020
New revision: 367126
URL: https://svnweb.freebsd.org/changeset/base/367126

Log:
  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 at gmail.com (Greg Balfour)
  MFC after:    3 days

Changes:
  head/usr.bin/calendar/calendar.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list