freebsd-nq/usr.bin/calendar
Gleb Smirnoff e67975d331 Fix 'calendar -a' in several ways.
o Do not run any iconv() processing in -a. The locale of root user is not
  what is desired by most of the users who receive their calendar mail.
  Just assume that users store their calendars in a format that is readable
  to them. This fixes regression from r344340.
o fork() and setusercontext(LOGIN_SETALL) for every user. This makes LANG
  set inside a calendar file mostly excessive, as we will pick up user's
  login class LANG.
o This also executes complex function cal() that parses user owned files
  with appropriate user privileges.
  Previously it was run with privileges dropped only temporary for execution
  of cal(), and fully dropped only before invoking sendmail (see r22473).

Reviewed by:	bapt (older version of patch)
2019-09-10 04:21:48 +00:00
..
calendars Add missing comma in calendar.freebsd 2019-08-15 18:46:27 +00:00
tests Increase timeout for legacy_test from 300 (default) to 600 seconds. 2016-09-26 13:59:18 +00:00
calendar.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
calendar.c Fix 'calendar -a' in several ways. 2019-09-10 04:21:48 +00:00
calendar.h calendar: use iconv to respect the output encoding 2019-02-20 06:40:52 +00:00
dates.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
day.c Remove pointless playing with LC_TIME, which should have been done in r205821. 2019-09-10 04:01:41 +00:00
events.c calendar: use iconv to respect the output encoding 2019-02-20 06:40:52 +00:00
io.c Fix 'calendar -a' in several ways. 2019-09-10 04:21:48 +00:00
locale.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Fix 'calendar -a' in several ways. 2019-09-10 04:21:48 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ostern.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
parsedata.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
paskha.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pathnames.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pom.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sunpos.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00