summaryrefslogtreecommitdiffstats
path: root/libexec/comsat
AgeCommit message (Collapse)AuthorFilesLines
2018-09-24unveil maildir, utmp, /tmp, and /dev. For the vast number of peoplederaadt1-1/+9
using biff.
2017-04-03check return from pread, don't divide -1 for counttedu1-2/+6
2017-04-03use recallocarray() because the array contains data that can be observedderaadt1-2/+3
2017-04-02Prefer pread() over lseek()+read()guenther1-4/+3
open() only needs the mode argument if O_CREAT is present ok beck@ deraadt@
2016-04-02Use open(tty, O_WRONLY) + fdopen() instead of fopen(tty, "w") tomillert1-2/+4
keep stdio from opening with O_CREAT which would require pledge cpath.
2015-10-12Call pledge(2) after initial getsockname(2) to avoid "inet" addition.uebayasi1-4/+5
From & OK deraadt@
2015-10-10normalize a few more tame request orderings, to help reviewderaadt1-2/+2
2015-10-09With nfs spool (fork + seteuid/setuid balony) support gone, it becomesderaadt1-1/+5
possible to pledge "stdio rpath wpath tty proc" Noone uses this code anymore. This is a demonstration...
2015-10-09remove NFS spool support; it stands in the way of pledge(2)deraadt1-8/+1
2015-07-06Trim trailing whitespace from the comsat message before callingmillert1-4/+10
strtonum() to parse the offset since mail.local writes a trailing newline. Otherwise comsat just discards the message. OK deraadt@
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failurederaadt1-2/+5
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-3/+4
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)
2012-12-04remove some unnecessary sys/param.h inclusionsderaadt1-2/+1
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-12/+1
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
2007-05-31convert to new .Dd format;jmc1-2/+2
2006-08-17recv(2) returns a ssize_t, so match cc with it.ray1-10/+10
st.st_mtime is a time_t, so match utmpmtime with it. Check for -1 instead of <0 for some system calls. Remove pointless casts. OK dhill@ and millert@
2005-11-15the third arg of read() is size_t, not int (cast fix)millert1-5/+5
use UT_NAMESIZE more consistently from Andrey Matveev
2004-09-16more signal flag races; ok miod@otto1-3/+3
2004-09-14ARGSUSED before signal handler with unused signoderaadt1-2/+4
2003-09-26free(NULL) allowedderaadt1-4/+3
2003-09-25Fix typo in revision 1.29; deraadt@ OKmillert1-3/+3
2003-09-24realloc fixes; ho okderaadt1-4/+11
2003-06-19use fseeko; millert okderaadt1-3/+3
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert2-13/+5
rescinded 22 July 1999. Proofed by myself and Theo.
2002-09-06use socklen_t more; henning okderaadt1-3/+3
2002-08-22fix int overflow in statbf.st_size, from netbsd PR#17933pb1-2/+8
as by request from deraadt@
2002-07-03KNFderaadt1-18/+8
2002-06-20fix patch; moritz@jodeit.orgderaadt1-5/+5
2002-06-19handle non-terminated things better; moritz@jodeit.orgderaadt1-8/+15
2002-02-16Part 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.millert1-8/+8
2001-12-07kill more registers;mpech1-11/+11
millert@ ok
2001-11-18Ensure SA_RESTART is not set on SIGALRM. With it set, the SIGALRM is notderaadt1-8/+17
seen after a successful recv(). This affects some other programs too.. but turning off SA_RESTART requires SIGNIFICANT analysis -- not for the faint of heart.
2001-11-17volatile sig_atomic_tderaadt1-3/+3
2001-07-08-Wallderaadt1-4/+4
2001-05-12strlcpyderaadt1-4/+3
2001-01-28$OpenBSD$niklas3-4/+5
2001-01-17use sig_atomic_t, and check for signal flag more oftenderaadt1-6/+7
2001-01-11change signal handler to set a flag, and then in the main loop doderaadt1-7/+20
the work that this handler used to do. many signal handlers in the tree should be changed to this, since a large percentage of them have raceable stuff in them; like mixing malloc's and stdio inside and outside the handler.. terrrible stuff
2000-09-08Some miscellaneous man page repairs.aaron1-10/+10
1999-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.millert1-2/+2
1999-06-23use sockaddr_storagederaadt1-2/+2
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1-2/+2
is used instead; kwesterback@home.com
1999-02-21vis() buf overflowderaadt1-2/+2
1998-07-13ftpd: sleep for an indeterminate amount for non-existant loginsmillert1-3/+3
to simulate a crypt, like login does. Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
1998-07-10do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabblingderaadt1-2/+2
1997-11-20do not exit(-1)deraadt1-2/+2
1997-08-05More errno saving.angelos1-1/+3
1997-08-04save errno in sigchld handlersderaadt1-1/+4
1996-12-22Deal with _POSIX_SAVED_IDS when relinquishing privilegestholo1-2/+4
1996-08-27visderaadt1-4/+6