[Bug 246943] [patch] calendar(1): Do not send reports for uids < 1000, except root

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 2 18:38:04 UTC 2020


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

            Bug ID: 246943
           Summary: [patch] calendar(1): Do not send reports for uids <
                    1000, except root
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: standards
          Assignee: standards at FreeBSD.org
          Reporter: wcarson.bugzilla at disillusion.net

Created attachment 215176
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215176&action=edit
Patch to calendar(1) to skip reserved UIDs

Overview:

    When using calendar(1) with periodic and a config for the root user,
multiple reports will be sent due to system user accounts using /root as their
homedir (e.g. toor & daemon). 

Steps to Reproduce: 

    0) Prerequisite: working local mail delivery

    1) Create calendar(1) config as the root user

        # mkdir ~root/.calendar
        # echo '#include <calendar.all>' > ~root/.calendar/calendar

    2) Enable calendar(1) periodic script

        # sysrc -f /etc/periodic.conf daily_calendar_enable="YES"

    3) Wait for daily periodic mail

Actual Results:

    Receive 3 e-mails from the reminder service (one for root, one for toor,
and one for daemon).

Expected Results: 

    Should only receive 1 reminder e-mail, for root.

Build Date & Hardware: 

    FreeBSD 13.0-CURRENT #5 r360989: Sun May 17 06:56:59 UTC 2020

Additional Information:

    This patch makes it so the `-a` argument to calendar(1) will exclude UIDs
less than 1000 (with an exception for the root user only).

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


More information about the freebsd-standards mailing list