Commit Graph

63 Commits

Author SHA1 Message Date
mbalmer
74f49bc48d s/the the/the/ 2009-12-08 09:46:01 +00:00
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos
9d497371ab PR/36644: Edgar Fuss: vacation does not work if homedir not present
Don't care about it failing if all paths needed are absolute.
2007-07-13 14:52:15 +00:00
christos
0ec618debc bump warns to 4. 2007-07-13 13:22:05 +00:00
christos
3a2d5ef17c PR/36643: Edgar Fu: -m missing from getopt.
While there:
- mark usage noreturn
- remove prototype for main
2007-07-13 13:21:49 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos
d43ad774cc Add Auto-Submitted: header per RFC 3834, from OpenBSD 2006-08-15 16:21:59 +00:00
christos
9e8b7b7aae PR/34095: Brian Buhrow: Vacation(1) core dumps when there is a Subject:
header with no content
2006-07-27 00:10:42 +00:00
wiz
3a8954928b New sentence, new line; punctuation fixes;
sort options in SYNOPSIS.
2004-08-25 12:47:57 +00:00
wiz
4e8c80f100 Drop trailing whitespace. 2004-08-25 12:44:38 +00:00
christos
4a49cd4b02 Align usage with other vendor unices:
old -f -> -F
    old -t -> -T
    add -j
    add -f <datafile>
    add -m <msgfile>
    add -t <interval>, as an alias to -r and recognize <num>{w,d,h,m,s}
    add -s <sender>
    document -I as an alias to -i
Also, interpret $SUBJECT in the message.
Correct documentation.
2004-08-19 13:43:54 +00:00
christos
2ec264ee7d WARNS=3 2004-08-19 13:37:07 +00:00
christos
2a1bd4a323 - more void casts
- knf nits
- check for fdopen failure
2004-04-05 23:11:34 +00:00
wiz
2be3546ee6 Use setprogname(); sort options in usage. 2004-04-04 10:29:20 +00:00
christos
ea764b2823 - add debugging flag
- use getprogname everywhere
- fix bug where if no .vacation.db existed, and the first message was not
  suitable for reply, vacation would create a 0 length db file, and from
  then on it would fail to process.
- handle e-mail address parsing better.
2004-04-04 01:19:35 +00:00
christos
4dae1e8533 document debugging flag. 2004-04-04 01:17:29 +00:00
christos
911c325c50 reverse logic in from test; from wiz 2004-04-03 23:57:32 +00:00
christos
103578edc3 fix date and wording; suggested by wiz 2004-04-03 23:56:49 +00:00
christos
58fa7a1588 - Fix bug in the determination of apparently-to and delivered-to.
- Add -f flag to look in Sender:, From:, and Return-Path: for the sender.
2004-04-03 20:55:13 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun
870f37306c use bounded string op 2003-07-14 09:24:00 +00:00
wiz
70f9b8f89a Sort sections. 2003-04-24 12:11:17 +00:00
christos
c6f13c73f2 Mention that -t is harmful. 2003-04-20 03:55:38 +00:00
christos
3a1e3ae4c9 Add flags to look in Apparently-To: or Delivered-To: fields. Inspired by jhawk. 2003-04-20 03:32:50 +00:00
christos
3de451fe1e PR/5039: Greg A. Woods: vacation should look at Apparently-To: and
Delivered-To: headers.
2003-04-20 01:58:00 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
perry
b88a15cf9c Add some missing voids. 2003-02-18 19:21:33 +00:00
wiz
5d8df6cb04 Restore a space. 2002-10-13 00:27:40 +00:00
grant
be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz
47d134a2d6 Use Bd -literal instead of Bd -unfilled. 2001-12-08 19:21:33 +00:00
wiz
3bc2f49491 Lowercase sendmail in xref. 2001-04-04 09:49:47 +00:00
lukem
b792d3dea5 revert part of previous, and change back to LOG_USER (from LOG_MAIL).
however, unlike the original behaviour, this has been done with an explicit
openlog(...,LOG_USER) to make it more obvious what facility is used.
2001-01-10 23:15:42 +00:00
lukem
4d27ed96d9 use LOG_MAIL (instead of default, which is LOG_USER)
log all fatal errors to LOG_ERR
2001-01-10 12:34:50 +00:00
mjl
ecb8be475b Fix name comparison bug due to questionable microoptimisation,
reported by Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
in PR/10638.
2000-07-21 01:21:31 +00:00
enami
d8ad2663a8 In name section, use .Dq macro rather than writing double quote directly. 1999-08-17 03:36:35 +00:00
garbled
9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos
9622cbbfb5 char -> unsigned char 1998-12-19 23:37:14 +00:00
mycroft
b223acf69a const poisoning. 1998-07-26 23:03:30 +00:00
cgd
0e1f4daac8 can't use fclose() in vforked() child this way. Fixes PR 5582. 1998-07-08 00:34:53 +00:00
mikel
fe49cec369 syslog(3) cleanup: don't append \n, use %m instead of %s & strerror(3) 1998-02-07 07:06:24 +00:00
kleink
a2d5407369 .Nm usage police; from NAKAJIMA Yoshihiro in PR bin/4897. 1998-01-28 16:42:55 +00:00
thorpej
d616cbff44 Change an exit() -> _exit(), so that it's safe for vfork(). 1997-12-31 06:13:24 +00:00
lukem
73d70748a8 remove WARNS=0 here, use ANSI string funcs, fix .Nm usage 1997-10-20 02:53:02 +00:00
mikel
6e9797c617 set WARNS?=1 1997-09-20 05:51:40 +00:00
mikel
f08412063c update for use with WARNS=1:
- use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
- add parens and main() prototype to shut up gcc -Wall
also replace {,r}index() with str{,r}chr(), nuke 'register', and
  otherwise KNFify and clean up
1997-09-20 05:50:45 +00:00
mikel
28cd33c439 xref syslog(3) not nonexistent syslog(8) 1997-09-20 05:24:36 +00:00
mrg
8e81f950a4 Ensure that option processing is complete before externally supplied
arguments are passed to sendmail.
1997-08-28 08:13:41 +00:00