summaryrefslogtreecommitdiff
path: root/usr.bin/calendar/io.c
AgeCommit message (Collapse)Author
2001-09-27some fixes and cleanups some from dfa@solo.ee, some pointedMichael Shalayeff
out by pjanzen@ .
2001-09-27-Wall passage for prev commitMichael Shalayeff
2001-09-26special procesing for cyrillic calendars (.ru, .ua, .by for now).Michael Shalayeff
does not affect any existing behaviour for everything else. old idea expressed by form@; millert@ ok
2001-09-03No longer any reason to care if calendar file is a pipe or not.Paul Janzen
2001-09-03- Prevent users from hanging or killing 'calendar -a', at the cost ofPaul Janzen
one additional fork() per user who has a calendar file. Side effect is that root runs much less code. - Use login caps so we don't, for example, give a user more processes than he's allowed. - tmpfile() rather than mkstemp() means never leaving junk behind. - Don't let 'calendar -a' take more than a day. Reviewed by millert@
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-05errx->err where errno is setPaul Janzen
2000-12-07only accept real files for the calendar file. requires some cuteTheo de Raadt
nonblocking hackery.
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
1999-11-25Parse dates only before the first <tab> character; otherwise, weekly eventsPaul Janzen
whose description starts with a valid month are misparsed.
1999-04-20Don't call sendmail with "-f root" since sendmail isn't run by a "trustedPaul Janzen
user". Removes the X-Authentication-Warning. From FreeBSD.
1998-12-13Show periodic events the correct number of times.Paul Janzen
Calculate special events (Easter) correctly regardless of which year they occur in (thus fixing user/562). Keep locales and special event names from propogating from one user to the next during "calendar -a". Set up a framework to handle special events other than Easter (for instance, Jewish events, eventually). Various other fixes.
1998-11-08Sort output by date; include framework for showing periodic events more thanPaul Janzen
once
1998-03-30Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various placesTheo de Raadt
1998-02-14Give correct format to strftime(3) instead of using "%c" and makingTodd C. Miller
assumptions as to what that will look like (which is idiotic as %c is locale-dependent).
1997-09-12Kill extra newline in err()/warn().Todd C. Miller
1996-12-05FreeBSD calendar(1) + OpenBSD changes.Todd C. Miller