From 314c5b3583aa0761fdbe1af89dcd00d46796838e Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Tue, 29 Sep 2020 05:49:45 +0000 Subject: [PATCH] Document the fact (bug?) that the -a option will normally process root's calendar files three times, once each for root, toor and daemon. This relates to bug 246943, but does not solve it. See discussion in bug report for more details. PR: 246943 Reported by: wcarson.bugzilla@disillusion.net --- usr.bin/calendar/calendar.1 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/usr.bin/calendar/calendar.1 b/usr.bin/calendar/calendar.1 index f90903bc936..e323a3986b9 100644 --- a/usr.bin/calendar/calendar.1 +++ b/usr.bin/calendar/calendar.1 @@ -70,9 +70,24 @@ Print lines from today and the next .Ar num days (forward, future). .It Fl a -Process the ``calendar'' files of all users and mail the results +Process the ``calendar'' files for users found in +.Pa /etc/passwd +and mail the results to them. -This requires super-user privileges. +This can result in multiple messages for specific files, since +.Pa /etc/passwd +does not require home directories to be unique. +In particular, by default +.Ar root , +.Ar toor +and +.Ar daemon +share the same home directory. +If this directory contains calendar information, +.Nm +will process the file three times. +.Pp +This option requires super-user privileges. .It Fl B Ar num Print lines from today and the previous .Ar num