Commit Graph

28 Commits

Author SHA1 Message Date
onoe 740970e20e ignore trailing newline which is included in the message from mail.local. 2001-04-02 14:57:37 +00:00
atatat 4c4a0e2830 Use strtol() instead of atoi() for reading the number out of the
datagram that we received, which leads to easier support for
(ignoring) the procmail messages that specify the folder to which
the message was delivered.

When reading the mailbox, if we encounter a "From " line, we should
exit().  This can occur if there are a lot of rapidly arriving, yet
short messages.
2001-03-16 21:39:08 +00:00
atatat 32af82236c Fix output to a tty that is missing ONLCR (eg emacs, vi, mutt,
etc.).  This became broken when strvis(3) started being used instead
of simply scanning for "bad" characters.
2001-03-14 04:39:42 +00:00
cgd 65a1026492 convert to use getprogname() 2001-02-19 22:43:42 +00:00
christos b42a153d41 fix nested extern 2001-02-04 21:59:52 +00:00
mjl 7627a9213f Un-__P and ANSIfy. 2000-10-04 18:52:50 +00:00
mjl e88c38cfda No \n in syslog messages.
_exit(-1) -> _exit(1).
2000-10-04 18:24:03 +00:00
mjl 8895a2f9a6 Use sockaddr_storage.
Use correct var for strncpy length.
2000-08-22 16:42:37 +00:00
msaitoh b0d71b5f83 remove extra period 2000-08-14 12:16:45 +00:00
garbled f124765044 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:25:43 +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
mrg 90e4ac0203 add -l logging switch. 1998-07-04 19:38:39 +00:00
mrg 46b017828c - remove register
- KNF
- ensure hostname has trailling nul.
- use initgroups/setgid/setuid rather than just setuid, and do this earlier.
- find "from:" and "subject:" as well.
- use strvis(3) rather than some local crufty code.
1998-07-03 02:27:58 +00:00
kleink d1cd3dd49b Need <time.h> for time() prototype. 1998-04-01 14:29:08 +00:00
enami abc05455ed Fix .Nm usage. 1997-10-20 02:27:53 +00:00
mrg 16e14cfd8d WARNS?=1. RCS ids 1997-10-07 10:57:08 +00:00
kleink 66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
mycroft 78cb5bbe77 Use POSIX tty semantics. 1995-05-02 02:05:47 +00:00
mycroft ebeae88da2 Use POSIX signals. 1995-03-21 21:47:04 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
jtc 9c98b1cffd Sync with 4.4 lite 1994-08-06 23:26:31 +00:00
jtc c3a4cec791 Include proper header files to bring prototypes into scope 1994-08-05 01:01:16 +00:00
cgd b65d6c0390 better fix for security problems, and minor cleanup 1994-02-01 00:32:22 +00:00
briggs 476d26c797 Change from bicknell@csugrad.cs.vt.edu and ceharris@csugrad.cs.vt.edu.
This closes an apparent security problem on systems where users have
write access to the mail spool.  Since root actually runs comsat, a
user could link their mail file to a system file that they normally
could not access, and use comsat to view said file.  This fix simply
makes sure that the mail file is a REGular file.
1994-01-30 18:32:39 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00