[Bug 288406] calendar(1) with -A 0 wrongly getting set to 1 in some conditions

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 24 Jul 2025 19:06:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288406

--- Comment #2 from Tim Chase <freebsd@tim.thechases.com> ---
Comment on attachment 262389
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262389
Fix -A option handling

It looks like this might still produce hiccups if `-A0` on a Friday, so I'd
recommend tweaking your patch to something like

    if (after > 0 && after < 3 && tp.tm_wday == friday)
            after = 3;

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