OpenBSD CVS

CVS log for src/usr.bin/vacation/vacation.c


[BACK] Up to [local] / src / usr.bin / vacation

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:05 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:42 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 15 00:41:28 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time.  This makes the
tree safe for /usr/include/tzfile.h removal.  The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree.  Actual removal of tzfile.h is pending
a ports build.  Based on a diff from deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:13 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.34 / (download) - annotate - [select for diffs], Tue Nov 26 19:25:39 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.33: +8 -8 lines
Diff to previous 1.33 (colored)

unsigned char casts for ctype
ok okan

Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 19 14:35:40 2013 UTC (11 years, 1 month ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

match behavior of current sendmail-based vacation: eliminate the concept that
an interval (-r) of 0 indicates sending a reply to every message (per sender),
but rather match the 'non-numeric' case where only one reply will be sent (per
sender).  default remains unchanged.  vacation database should be reinitalized
sometime before 2038.

removes the need for time_t casts.

discussed with deraadt; ok millert

Revision 1.32 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:46 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.31: +1 -14 lines
Diff to previous 1.31 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 11 15:50:34 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

makes source code fit on a 80-column display, no binary change.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 11 15:47:17 2007 UTC (16 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.29: +5 -8 lines
Diff to previous 1.29 (colored)

use strcspn to properly overwrite '\n' in fgets returned buffer

ok pyr@, ray@, millert@, moritz@, chl@

Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 21 03:31:19 2007 UTC (17 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored)

remove extra *p tests, from charles longeau
ok deraadt millert

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 27 15:51:17 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.27: +12 -2 lines
Diff to previous 1.27 (colored)

support rfc2919 List-Id, from Tamas TEVESZ, ok millert

Revision 1.27 / (download) - annotate - [select for diffs], Fri Feb 23 15:55:17 2007 UTC (17 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.26: +10 -9 lines
Diff to previous 1.26 (colored)

Ignore trailing space after "Auto-Submitted: no"
Remove an unneeded check for !*p
OK deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 23 15:26:52 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

add back in character count check by Tamas TEVESZ, though this does
not truly handle trailing whitespace on the line.  but that is handled
very weakly for other patterns, too.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Feb 23 15:18:59 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +22 -8 lines
Diff to previous 1.24 (colored)

support for "Auto-Submitted: no" from Tamas TEVESZ; small tweak by millert,
ok millert (man page update being done by jmc)

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 14 15:49:28 2006 UTC (17 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Add Auto-Submitted header in generated mail as per RFC 3834.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 5 07:18:43 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.22: +8 -3 lines
Diff to previous 1.22 (colored)

cope with fdopen failure better

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 8 19:08:03 2004 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +25 -27 lines
Diff to previous 1.21 (colored)

knf.  there are some scary XXX in here which need fixing

Revision 1.21 / (download) - annotate - [select for diffs], Sat Aug 9 23:47:32 2003 UTC (20 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Fix off by one in strlcpy() check; Patrick Latifi

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:53 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +11 -16 lines
Diff to previous 1.19 (colored)

mostly ansi cleanup; pval ok

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:21 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.18: +3 -7 lines
Diff to previous 1.18 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 13 09:09:36 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:56 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.16: +10 -10 lines
Diff to previous 1.16 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 7 07:17:38 2002 UTC (22 years, 3 months ago) by mpech
Branch: MAIN
Changes since 1.15: +11 -5 lines
Diff to previous 1.15 (colored)

I want my vacation to be case nonsensitive in readheaders().

millert@ ok

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:17 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.14: +9 -9 lines
Diff to previous 1.14 (colored)

kill more registers

millert@ ok

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:56 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 5 21:53:30 2000 UTC (23 years, 9 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.12: +18 -13 lines
Diff to previous 1.12 (colored)

Fix name comparison bug found by Thilo Manske in NetBSD PR 10638.  While I'm
at it, do some -Wall fixing.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 3 20:20:26 1999 UTC (24 years, 11 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.11: +36 -7 lines
Diff to previous 1.11 (colored)

add support for including the subject of a message being replied to
in the reply; OK'd by deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 12 01:21:07 1999 UTC (25 years, 3 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.10: +28 -11 lines
Diff to previous 1.10 (colored)

parse "Return-Path:" headers in addition to UUCP style
"From " lines; remove redundant program name from log messages

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 8 21:39:08 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

close(fileno()) inside vfork(); cgd

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 7 02:47:21 1998 UTC (26 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.8: +23 -18 lines
Diff to previous 1.8 (colored)

o Don't put newlines in syslog() messages and use %m, not strerror()
o If .vacation.db is size 0, dbopen() with O_TRUNC (otherwise vacation
  will do exit(1) and sendmail will be unhappy.  dbopen() should probably
  deal with zero-length files sanely.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 6 23:47:09 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

use -- instead; eric

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 29 16:48:13 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

oops

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 29 02:08:40 1997 UTC (26 years, 9 months ago) by bitblt
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Theo really wanted a hole in Allman code.  Now he's got one.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 17 07:13:48 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +7 -7 lines
Diff to previous 1.4 (colored)

r?index -> strr?chr

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:31 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 6 02:09:22 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

vfork w/ exit botch

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:42:27 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:32 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:32 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.