Date: Fri, 01 Jan 2021 00:53:28 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 205580] Running "calendar -a" as root fails when user calendar files contain #include Message-ID: <bug-205580-227-RB7Ea4saci@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205580-227@https.bugs.freebsd.org/bugzilla/> References: <bug-205580-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205580 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/11 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df1031f07fb8b3994ffe14b5d780304e4d= e1f32fb commit f1031f07fb8b3994ffe14b5d780304e4de1f32fb Author: Stefan E=C3=83er <se@FreeBSD.org> AuthorDate: 2020-10-29 08:26:38 +0000 Commit: Stefan E=C3=83er <se@FreeBSD.org> CommitDate: 2021-01-01 00:46:48 +0000 MFC: 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=3D=3D0, the directory sear= ched 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 (cherry picked from commit 3fa2a149d68d22fa32ba7b6c09773388ac490fd1) The code in -CURRENT is quite different (forks sub-processes tp process the files for each user) but this change should provide the same functionality as the referenced commit to -CURRENT. usr.bin/calendar/calendar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205580-227-RB7Ea4saci>