git: calendar(1): Improve UTC offset and longitude handling

2019-11-09 Thread Aaron LI
commit 04c78042a4d24301e1b9889e67dd2fda5102f0d4 Author: Aaron LI Date: Tue Nov 5 23:24:10 2019 +0800 calendar(1): Improve UTC offset and longitude handling Refactor the code that deals with the UTC offset into a separate function 'get_utcoffset()'. Meanwhile, allow

git: calendar(1): Rework calendar files installation

2019-11-09 Thread Aaron LI
commit 675224d2580a27ae459048fb4a58ef3cd1dfb251 Author: Aaron LI Date: Mon Feb 18 09:17:31 2019 +0800 calendar(1): Rework calendar files installation Switch the installation of calendar files to use FILES and SYMLINKS instead of bare install(1). Also explicitly list each

git: calendar(1): Use login caps for 'calendar -a'

2019-11-09 Thread Aaron LI
commit f8b849d1082177cbfa11f941feeeced54815dc56 Author: Aaron LI Date: Sat Nov 9 21:49:18 2019 +0800 calendar(1): Use login caps for 'calendar -a' * Use 'fork()' and 'setusercontext(LOGIN_SETALL)' for every user. With this change, the complex function 'cal()' that parses

git: calendar(1): Significant update to calendars from OpenBSD

2019-11-09 Thread Aaron LI
commit ce2bfbaea2f17fce6172d6e50fea5f4a59ff43ea Author: Aaron LI Date: Thu Oct 31 23:44:04 2019 +0800 calendar(1): Significant update to calendars from OpenBSD * The calendars were obtained from OpenBSD as of 2019-02-19 * Generally, OpenBSD has more entries and more

git: calendar(1): Use UTF-8 for all calendars

2019-11-09 Thread Aaron LI
commit 50c43034196417b4380dc255b9df195e1cf4c4f5 Author: Aaron LI Date: Mon Feb 18 13:12:52 2019 +0800 calendar(1): Use UTF-8 for all calendars Remove 'pt_BR.ISO8859-1' and 'ru_RU.KOI8-R' since their UTF-8 version already exist. Convert the following calendars to

git: calendar(1): Various cleanups

2019-11-09 Thread Aaron LI
commit cd0cff3392ab64e19edd6ec29b179fa96f4c556c Author: Aaron LI Date: Tue Nov 5 23:23:06 2019 +0800 calendar(1): Various cleanups * Mostly style cleanups. * Use 'bool' when more appropriate. * Staticize several functions and variables to clean up 'calendar.h'. Summary

git: calendar(1): Define "LANG" for national calendars

2019-11-09 Thread Aaron LI
commit 68268a17ae368372e334c15c51042786a4b3ed6d Author: Aaron LI Date: Sun Nov 10 12:43:14 2019 +0800 calendar(1): Define "LANG" for national calendars Similar to the other national calendars in 'calendars/*.UTF-8' directories. Summary of changes:

git: calendar(1): Add '-h' and '-?' to show usage help

2019-11-09 Thread Aaron LI
commit ec2ffd9d0928e1bd32a7d525e5df676b4f9318a6 Author: Aaron LI Date: Wed Nov 6 22:19:59 2019 +0800 calendar(1): Add '-h' and '-?' to show usage help Summary of changes: usr.bin/calendar/calendar.1 | 5 - usr.bin/calendar/calendar.c | 4 +++- 2 files changed, 7 insertions(+), 2

git: calendar(1): Remove redundant fr_FR.UTF-8/calendar.french

2019-11-09 Thread Aaron LI
commit 65d7c1d9e514f3abda01758d24b643468d4690ed Author: Aaron LI Date: Mon Feb 18 13:30:35 2019 +0800 calendar(1): Remove redundant fr_FR.UTF-8/calendar.french Summary of changes: Makefile_upgrade.inc | 1 + usr.bin/calendar/Makefile

git: calendar(1): Remove pointless playing with LC_TIME

2019-11-09 Thread Aaron LI
commit f824736add16dee75b01041317a66b786fdca371 Author: Aaron LI Date: Wed Nov 6 22:53:38 2019 +0800 calendar(1): Remove pointless playing with LC_TIME Obtained-from: FreeBSD (revision 352115)

git: calendar(1): Do not ignore errors of setuid/setgid in '-a' mode

2019-11-09 Thread Aaron LI
commit 3a34e56dfb1697f92c7ee23ad476a2dab13e46b2 Author: Aaron LI Date: Sun Nov 3 11:30:27 2019 +0800 calendar(1): Do not ignore errors of setuid/setgid in '-a' mode Also clear the supplementary groups list up front when becoming another user, to avoid leaking any extra group

git: calendar(1): Refactor mail header composition and sending

2019-11-09 Thread Aaron LI
commit effe59f3df8e35e540b9fcbebe2295138800b16f Author: Aaron LI Date: Sun Nov 10 10:27:24 2019 +0800 calendar(1): Refactor mail header composition and sending * Use 'struct iovec header[]' to hold all mail headers, and then use writev(2) to write them into the pipe.

git: calendar(1): Search calendar file in current directory first

2019-11-09 Thread Aaron LI
commit c22cba45a51e10e12de190c2d12f2628b40a9ace Author: Aaron LI Date: Sun Nov 10 11:54:44 2019 +0800 calendar(1): Search calendar file in current directory first This fixes the regression introduced in commit f8b849d1082177cbfa11f941feeeced54815dc56. Summary of changes:

git: calendar(1): Merge 'pathnames.h' into 'io.c'

2019-11-09 Thread Aaron LI
commit 144b9c45ab6b862b1c9d5fc7dcd6fe0b470a0650 Author: Aaron LI Date: Sat Nov 9 22:56:57 2019 +0800 calendar(1): Merge 'pathnames.h' into 'io.c' The '_PATH_INCLUDE' is no longer an appropriate name for the system calendars at '/usr/share/calendar', because we no longer use

git: calendar(1): Sync calendars from FreeBSD

2019-11-09 Thread Aaron LI
commit 54dbcd50cdda04d13db52aea66ec46b76bb7ce15 Author: Aaron LI Date: Sun Feb 17 19:20:25 2019 +0800 calendar(1): Sync calendars from FreeBSD Update the mtree(8) entries and the man page accordingly. Summary of changes: Makefile_upgrade.inc |

git: calendar(1): Merge two fixes to calendars from FreeBSD

2019-11-09 Thread Aaron LI
commit 64f6dfcff41e44c2ffc649ef15ca9516bc88b57a Author: Aaron LI Date: Wed Nov 6 22:48:11 2019 +0800 calendar(1): Merge two fixes to calendars from FreeBSD * Change the date of 'Canberra Day'

git: calendar(1): Sync with FreeBSD

2019-11-09 Thread Aaron LI
commit 148ae05012f30ac10fbce91110282aaaf45194e3 Author: Aaron LI Date: Sun Feb 17 23:44:21 2019 +0800 calendar(1): Sync with FreeBSD New features: * Support events that span multiple years, because of '-A', '-B' or just the three days before the end of the year. *

git: calendar(1): Reset locale after parsing each calendar file

2019-11-09 Thread Aaron LI
commit 008d3e667e6b0b96a22a04662cfa21f42274a913 Author: Aaron LI Date: Sun Nov 10 12:40:45 2019 +0800 calendar(1): Reset locale after parsing each calendar file This avoids that one calendar file that changed the locale by defining the "LANG") does not interfere the

git: sys/vfs/msdosfs: Remove BPB_TotSec16 test for FAT32 on mount(2)

2019-11-09 Thread Tomohiro Kusumi
commit 75ff67093946812866c8900c977c3a03e286d156 Author: Tomohiro Kusumi Date: Sat Nov 9 05:44:52 2019 +0900 sys/vfs/msdosfs: Remove BPB_TotSec16 test for FAT32 on mount(2) from freebsd/freebsd@ad92b9afc4f7ec122f9438ac64b58c2926a6a6a4 Looks like BSD implementation of FAT

git: sys/vfs/msdosfs: Cleanup before implementing vfs clustering

2019-11-09 Thread Tomohiro Kusumi
commit cb33f13a75373c4ce9b1cf3669418c362ad87a70 Author: Tomohiro Kusumi Date: Sun Nov 10 00:17:20 2019 +0900 sys/vfs/msdosfs: Cleanup before implementing vfs clustering from freebsd/freebsd@b2bdcce9e10d5055a3afbfebf98e0e05fcd67113 Sync with a cleanup commit before

git: sys/vfs/msdosfs: Fix regression from cleanup commit 20241ea208

2019-11-09 Thread Tomohiro Kusumi
commit b19f987c728860fda67a384ec6cf427fcce052c5 Author: Tomohiro Kusumi Date: Sun Nov 10 00:17:06 2019 +0900 sys/vfs/msdosfs: Fix regression from cleanup commit 20241ea208 rablock needs to be a cluster#. Summary of changes: sys/vfs/msdosfs/msdosfs_vnops.c | 2 +- 1 file