mrg
084c052803
quell GCC 4.1 uninitialised variable warnings.
...
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
christos
ed5c178a35
Use errx instead of fprintf/fputs.
2006-05-01 23:12:24 +00:00
christos
9136a179f7
Coverity CID 1198: Avoid closing a negative fd.
2006-05-01 23:06:55 +00:00
christos
85576ae019
Coverity CID 1224: Avoid closing a negative fd.
2006-05-01 23:05:24 +00:00
christos
57e9a1d730
PR/32978: Johan Veenhuizen: mail(1) creates record file with insecure umask
2006-03-03 15:07:00 +00:00
christos
463f84da0a
PR/32964: Johan Veenhuizen: implement the unalias command
2006-03-03 13:36:27 +00:00
christos
ed70dac6b1
add more const
2006-01-05 02:13:41 +00:00
christos
ca28631014
Pass lint completely.
2005-07-19 23:07:10 +00:00
christos
ece0fd5c87
WARNS=3
2005-07-19 01:38:38 +00:00
wiz
077ec48387
Fix temp file paths. From Jeff Ito in PR 30316.
2005-05-24 11:21:40 +00:00
dsl
108eb2ab42
Add (unsigned char) cast to ctype functions
2004-10-30 20:39:35 +00:00
lukem
ee04d88971
Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
...
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.
XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
2004-05-16 09:53:09 +00:00
ross
3d7196f4d4
Simplify set(). No functional change.
2003-11-10 21:40:22 +00:00
ross
714ccc9c51
Refix last delta's string copying edits
2003-11-10 21:37:36 +00:00
ross
405db788de
Defensively rewrite a string moving loop.
...
Constify.
Check for an allocation error.
2003-10-31 01:25:54 +00:00
ross
a1a806781b
Fix the broken "!" escape and "shell" (&-prompt) commands. These problems
...
were related to closed PR bin/21896, and to the 2003-3-29 code import.
2003-10-29 05:11:26 +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
christos
ed5bfb0707
PR/21896: Jun-ichiro itojun Hagino: Fix botch with passing -1 as the stdin
...
for the editor instead of 0.
2003-07-14 20:49:14 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
wiz
323aeda0d6
Fix quoting.
2003-06-26 16:48:20 +00:00
christos
c1587f4d47
bring in fixes from OpenBSD:
...
- use varargs properly.
- pid_t
- better handling of error conditions on forked jobs.
2003-03-29 21:41:04 +00:00
perry
02b57cf8a2
Fix a bug introduced by Christos Zoulas in version 1.4.
...
He accidently moved the call to block the SIGCHLD to the wrong side of
the call to findchild().
Caused a coredump in one in every N thousand invocations of mail,
which I have been hunting for literally years.
Fixes PR 19696 from Mason Loring Bliss, too.
By the way, this is a prime example of why declarations of the form
struct foo *p = funcall();
are pure liquid evil.
2003-03-29 21:27:38 +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
8a49ec08e4
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
pooka
732f4c9fa5
Add ${MACROS} to ${ROFF} usage to make output readable
...
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
wiz
95882a7a34
Ispell. Begin new sentences on a new line.
2002-09-26 01:13:41 +00:00
itojun
dbf388bc4f
calloc() arg mistake. it's (nelem, size). from openbsd
2002-08-12 02:40:20 +00:00
ross
ecb9aca3ae
The print/Print pair just cries out for a corresponding save/Save feature,
...
so implement the "missing" Save command -- save all the headers.
2002-03-29 15:10:02 +00:00
ross
3038d491a5
only count header lines that are actually going to be displayed
...
when deciding whether to run $PAGER, otherwise it may start up the
pager for a two line message if all 55 header lines are the subject
of a .mailrc ignore command.
(And no, I don't find this program directly useful for reading
today's mail volumes, but it's great as a component run from wrapper
scripts, pretty good for scanning archived mail, and more than
adequate for sending mail.)
2002-03-29 15:07:52 +00:00
wiz
c8ce18c2b7
Do not remove the spool file if not mail remains, just truncate it
...
to 0 bytes, as e.g. Solaris-mail or mutt do.
This way we're sure to keep owner/permissions the same as before.
Reviewed by Christos.
2002-03-12 01:17:46 +00:00
wiz
6e6e326518
Usually, one reads from standard input, not standard output (comment).
2002-03-08 02:05:25 +00:00
wiz
240d8221ea
Replace last tempnam() with mkstemp(), and remove the tempMail variable.
...
Inspired by OpenBSD.
mail(1) is now tempnam(3) free.
2002-03-06 17:36:44 +00:00
wiz
a3b751130f
Give mail.1 a DESCRIPTION section.
...
Closes bin/14591.
2002-03-06 14:09:14 +00:00
wiz
443084c89d
Replace another tempnam() with mkstemp(), and remove the tempEdit variable.
...
Inspired by OpenBSD.
2002-03-06 13:45:51 +00:00
wiz
ae38aa875b
Use warn() instead of perror().
2002-03-05 21:29:30 +00:00
wiz
b6e7b17180
KNF: No space after casts.
2002-03-05 21:18:14 +00:00
wiz
9c3d74c30b
Replace another tempnam() with mkstemp(), and remove the tempResid variable.
...
Inspired by OpenBSD.
2002-03-05 21:11:46 +00:00
wiz
d44726b8b5
Replace a 0-cast with NULL.
2002-03-05 20:58:54 +00:00
wiz
69047878cf
Replace another tempnam with mkstemp (inspired by OpenBSD).
...
Replace perror with warn.
Use NULL instead of some cast 0.
s|/usr/mail|/var/mail| in a comment.
2002-03-05 20:57:28 +00:00
wiz
afc1761e0b
Replace another tempnam() with mkstemp(), and remove the tempMesg variable.
...
Inspired by OpenBSD.
2002-03-05 20:26:59 +00:00
wiz
c3df89412e
Replace printf+exit with errx.
2002-03-05 20:15:33 +00:00
wiz
4361c5156c
Check tmpdir for being empty and remove trailing slashes in it. Replace one
...
tempnam() with mkstemp(), and remove the tempQuit variable.
Inspired by OpenBSD.
2002-03-05 20:14:02 +00:00
wiz
a5643639a9
ANSIfy another function (overlooked that one...).
2002-03-05 19:26:42 +00:00
wiz
ad41eb4f49
Use strpbrk(3) instead of anyof().
2002-03-05 19:25:16 +00:00
wiz
cb6786d45f
Replace some more special pointers to zero (NIL, NONE, NOVAR, NOGRP, NOGE)
...
with NULL.
2002-03-04 03:16:10 +00:00
wiz
ab85015570
Don't use special null string pointer (NOSTR), just use NULL.
2002-03-04 03:07:25 +00:00
wiz
76925748f3
WARNS=2.
2002-03-02 15:29:49 +00:00
wiz
4e972651c7
Rename variables to avoid shadowing.
2002-03-02 15:27:51 +00:00
wiz
b127cccc2e
ANSIfy, and minimal KNF.
2002-03-02 14:59:35 +00:00
wiz
024b462262
Rename a variable to avoid shadowing.
2002-03-02 14:00:26 +00:00
wiz
f2ed23835a
ANSIfy.
2002-03-02 13:57:28 +00:00
lukem
670a900e30
use ${INSTALL_FILE} as appropriate
2002-02-09 09:14:32 +00:00
christos
0a5b0486ba
PR/15000: Mike Heffner: mail(1) doesn't reposition pointer correctly
...
Fix applied from OpenBSD, as suggested in the patch.
2001-12-19 00:06:11 +00:00
wiz
f005fee70b
Space and paragraph fixes.
2001-12-01 20:34:50 +00:00
tv
3a3a2b1175
Rename "aux.c" to "support.c" to avoid clash with invalid "aux" basename
...
on some Microsoft host OS's.
2001-10-19 02:46:19 +00:00
wiz
c805849eed
Properly quote `No' (as non-macro argument).
2001-10-17 21:08:15 +00:00
wiz
bca0ff2b3b
Add section to xref. Whitespace and punctuation fixes.
2001-04-04 09:38:32 +00:00
christos
85ef06032c
fix nested externs
...
rename raise to upcase to avoid clash with raise(3)
2001-02-05 02:07:52 +00:00
simonb
cd2e1c1e91
Use ${COPY} instead of -c for ${INSTALL} commands.
2000-09-23 13:53:41 +00:00
christos
253750edbd
Add -E "dontsendempty" flag which does not send messages that have no
...
data. This is useful when piping cron error output to mail. While I am
there add -~ to be a synonym for -I [but don't document it]. This is for
compatibility with other OS's.
2000-09-19 01:12:48 +00:00
ad
5ec7c0582e
printf fmt string without %s, from OpenBSD.
2000-07-06 14:12:31 +00:00
enami
7316fa55ad
Pass ${INSTPRIV} to ${INSTALL}.
2000-07-05 03:30:07 +00:00
itojun
6bb623fa65
sync with sendmail path change (/etc/aliases -> /etc/mail/aliases)
2000-05-05 18:21:06 +00:00
soren
89c5a767f8
Fix doubled 'the's.
2000-03-13 22:55:05 +00:00
tron
baa67f49cc
Rename send() to sendmessage() to avoid conflict with send(2) in "libc".
...
Patch supplied by Geoff Adams in PR bin/9385.
2000-02-10 12:34:42 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
fair
aff3242363
fix trivial nroff source bug, per PR 8724
1999-12-20 22:53:44 +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
mjl
fb60b363d0
Added missing mailx tilde escapes that POSIX wants (~<!, ~a, ~A, ~i).
...
Updated man page and tilde help file for missing ~ escapes.
Closes PR 782 by Simon J. Gerraty after four years and two weeks.
1999-02-17 20:48:48 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
dean
11976ebb30
fixes for PR 3886, 4719, 5424
...
mail is more consistent in a su'd environment
unset works if the variable is in the environment
fixed off by one error with 'z' scrolling
1999-02-09 04:51:30 +00:00
he
fbb55f0364
Set the 'crt' flag by default. This enables the pager, so that
...
messages > 24 lines do not scroll off the screen. Fixes PR 6965
by Yours Truly.
1999-02-08 20:48:25 +00:00
kleink
75ff0c2532
Fix preprocessor logic bogon; from Michael Eriksson <eramer@era-t.ericsson.se>
...
in PR bin/6681.
1999-01-06 15:53:39 +00:00
christos
ec1efbf3e5
Fix ifdef mess.
1998-12-19 16:35:10 +00:00
christos
2d72555862
char -> unsigned char
1998-12-19 16:34:38 +00:00
christos
288075599a
union wait -> int
1998-12-19 16:34:04 +00:00
christos
b1d8c6168d
index -> strchr
1998-12-19 16:33:24 +00:00
christos
681c2d939c
char -> unsigned char, index -> strchr
1998-12-19 16:33:08 +00:00
christos
dcc0ef7552
char -> unsigned char
1998-12-19 16:32:52 +00:00
christos
9189a0e37d
char -> unsigned char, index -> strchr, s.w_termsig -> WTERMSIG(s)
1998-12-19 16:32:34 +00:00
christos
bd077f6919
char -> unsigned char
1998-12-19 16:31:57 +00:00
christos
09edb00354
char -> unsigned char, s.w_coredump -> WCOREDUMP(s)
1998-12-19 16:31:41 +00:00
christos
25b1fd1911
char -> unsigned char, index -> strchr, rindex -> strrchr
1998-12-19 16:30:52 +00:00
wsanchez
55ce51b29f
Get rid of commons.
...
Rename vfree() to v_free() to avoid conflict in out libc's vfree().
1998-10-08 17:36:55 +00:00
lukem
9dee5d2b46
don't install in /usr/share if NOSHARE is defined
1998-09-27 17:22:03 +00:00
hubertf
878450be44
messages are in /var/mail, not /usr/spool/mail
1998-08-27 21:24:41 +00:00
ross
f670fa10c5
Add { and } to shut up egcs. Reformat the more questionable code.
1998-08-25 20:59:36 +00:00
mycroft
55ac0c2da3
const poisoning.
1998-07-26 21:58:46 +00:00
mrg
2beab49a06
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
ross
6afb00016c
Don't segfault just because a line starts with null.
...
linebuf[count - 1] = 0, nice try
1998-06-10 05:28:16 +00:00
kleink
6f197c5b08
Include <time.h>, needed for various definitions.
1998-04-02 10:31:09 +00:00
perry
3fe138c146
RCS Id Police.
1998-01-09 08:03:16 +00:00
christos
1b853377db
Make this work with obj dirs
1997-12-21 15:48:30 +00:00
bad
d78ba35458
Fix a pasto that would cause coredumps on exit when the mailbox has been
...
changed and new mail has arrived in the mean time. (PR bin/4644 Ken Wellsch)
While I'm here, fix typo in comment.
1997-12-07 21:27:10 +00:00
bad
a444ae6099
Work around gcc -Wuninitialized lossage.
1997-11-26 22:41:36 +00:00
bad
2f2497e5de
Detect more errors while manipulating mailbox files and tell the user
...
about them. Don't truncate mailbox files when a write error has occured.
1997-11-25 17:58:15 +00:00
bad
6a203aafce
Do not propagate local pipe and file address that are marked for deletion
...
into the mail header.
1997-11-25 17:55:52 +00:00
mrg
9f84449ae5
add missing .Nm sections.
1997-11-11 14:39:59 +00:00
mikel
27ccca6ffd
fix numerous typos
1997-11-07 07:57:21 +00:00
mycroft
ff7fbfe809
Make sure to clear the child's signal mask in all cases.
1997-10-31 22:48:12 +00:00
mycroft
bd73dc49c1
Oops; previous change was incomplete.
1997-10-31 22:21:37 +00:00
mycroft
4dc2ef91eb
Slight simplification of some signal handling goo.
1997-10-31 22:18:05 +00:00
christos
a2e8434f60
revert previous. It was dumb.
1997-10-31 22:15:52 +00:00
christos
c8963b13e9
Forgot to commit this somehow [part of the signal mask botch fix]
1997-10-31 21:23:46 +00:00
mycroft
004f255040
Use S_IS*(), not S_IF*.
1997-10-19 19:27:40 +00:00
mycroft
d8703622b5
Use _POSIX_VDISABLE, not 0, to disable special characters.
1997-10-19 16:49:15 +00:00
mrg
069922f852
fix compile warnings on the alpha.
1997-10-19 14:12:22 +00:00
mycroft
eae3d4c198
Fill in the microseconds fields for utimes(2).
1997-10-19 13:48:21 +00:00
lukem
7c81c8f378
WARNSify, fix .Nm usage, deprecate register, use <err.h>
1997-10-19 05:02:57 +00:00
matt
6db79ef042
Allow mailboxes to be in <cr><lf> format.
1997-10-18 15:48:48 +00:00
mycroft
e96e918e60
Use bsd.subdir.mk as appropriate.
1997-10-11 09:34:07 +00:00
christos
dbcb6055f7
PR/4150: sigint/sighup stays blocked after first letter cancellation.
1997-09-25 19:56:15 +00:00
mikel
1ac5792267
update printf formats to match type of line counts
1997-07-09 05:29:48 +00:00
mikel
70875d29b0
protect more variables against gcc longjmp() clobbering
1997-07-09 05:25:45 +00:00
mikel
f50e8d7409
make matchto() return type explicit
1997-07-09 05:23:36 +00:00
mikel
adaf168e3f
add prototype for incfile()
1997-07-09 05:22:00 +00:00
jtc
4ca4391165
/usr/spool/mail -> /var/mail
1997-07-09 02:53:39 +00:00
phil
a8316bbccd
Fixed bug where long lines (>1023 characters in current implementation)
...
were viewed as multiple lines by both standard input and ~<file.
Closes PR 3463.
1997-07-07 22:57:52 +00:00
pk
f890b048ac
NULL => 0 (Arne Juul; PR#3629)
1997-05-17 19:47:50 +00:00
mikel
d42ad5411c
don't try to ignore invalid signal; fixes PR bin/2901.
1997-05-13 06:48:42 +00:00
mikel
254cb6fdc9
fix some potential buffer overflows, and other cleanup.
1997-05-13 06:15:52 +00:00
christos
3917c3179d
- Makefile cleanups
1997-03-24 21:57:01 +00:00
mouse
650ee578da
alternate -> alternative, per PR 2643
1997-03-08 14:13:54 +00:00
perry
bb1df8311a
document mo command, per pr-3104 by Julian <jdc@orthanc.ncl.ac.uk>
1997-01-17 04:58:12 +00:00
perry
21e443a885
mail.rc now installed by 'make distribution' -- fixes pr-3015
1997-01-16 23:10:16 +00:00
tls
9d225a1783
RCS ID police
1997-01-09 20:18:21 +00:00
tls
19d35cbcd9
Sync with 4.4BSD-Lite2
1996-12-28 07:10:57 +00:00
tls
517427d9e1
Import of 4.4BSD-Lite2 source
1996-12-28 05:17:06 +00:00
tls
26d28c381f
Import of 4.4BSD-Lite (already merged at head)
1996-12-28 05:15:19 +00:00
christos
faad20023f
Fix PR/2900: Handle case where the signal mask is NULL.
1996-10-29 00:02:01 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00
christos
88b833a7cd
- Fix PR/105: Implement dot locking protocol and check return value of flock.
...
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POSIX signal mask calls.
- RCSid police.
1996-06-08 19:48:09 +00:00
jtc
f2a05c8ae1
USE_OLD_TTY no longer needed
1996-02-20 00:14:43 +00:00
jtc
6f400e259c
made cmdtab const
1996-02-19 21:54:32 +00:00
mycroft
66f0c16f14
Use POSIX tty semantics.
1995-05-02 01:40:14 +00:00
cgd
4a83a3c060
align allocations to pointer size.
1995-04-24 07:39:42 +00:00
jtc
a067af72d8
Implement the ~_ and ~< escapes from POSIX.2.
...
These are the easiest of the escapes to implement, as ~_ is the same as ~:,
and ~< is the same as ~r.
1995-02-08 16:15:52 +00:00
mycroft
b5c23110da
undelete -> undeletecmd, to avoid conflict with syscall.
1994-12-28 13:16:12 +00:00
cgd
28c7946a29
kill -R in CFLAGS
1994-12-22 11:20:21 +00:00
glass
22db40e083
fix bug 644. report and fix from Jan Sparud <sparud@cs.chalmers.se>. both forwarded on.
1994-12-18 23:33:48 +00:00
jtc
b5508f3525
Use tempnam() to generate temporary file names instead of trying to
...
concatenate getenv("TMPDIR") and "RxXXXXXX" into fixed length arrays.
1994-11-28 20:03:30 +00:00
mycroft
f0aa35c3b6
Install doc files.
1994-08-13 09:55:52 +00:00
deraadt
2cb5542f38
4.4-lite, plus our mods
1994-06-29 05:09:04 +00:00
jtc
dc933f0a1c
cfree() is obsolete, use free()
1994-05-22 02:57:35 +00:00
jtc
353b511d05
Fix bug #241 by adding off_t cast to macro that uses ftruncate().
1994-05-07 01:09:56 +00:00
cgd
20d2c86dad
lseek/long thing
1994-04-01 01:44:59 +00:00
cgd
a28a03c947
kill perverse syntax
1994-03-23 01:32:50 +00:00
cgd
ac105d61e4
fix for bin/155: Mail appended to mbox is preceded by NULs.
...
From: Arne H}strek Juul <arnej@dsl.unit.no>
1994-03-06 03:03:21 +00:00
deraadt
0479ea62bc
use the value of $MAIL (if set) as the default mailbox (like SunOS)
...
from christos@deshaw.com (Christos Zoulas)
1994-01-25 08:43:38 +00:00
deraadt
90880753b2
correct pathnames
1994-01-14 00:50:17 +00:00