Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jun 2020 18:37:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 246943] [patch] calendar(1): Do not send reports for uids < 1000, except root
Message-ID:  <bug-246943-99@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246943

            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@FreeBSD.org
          Reporter: wcarson.bugzilla@disillusion.net

Created attachment 215176
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215176&action=
=3Dedit
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 th=
eir
homedir (e.g. toor & daemon).=20

Steps to Reproduce:=20

    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=3D"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:=20

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

Build Date & Hardware:=20

    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 UI=
Ds
less than 1000 (with an exception for the root user only).

--=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-246943-99>