#
5b133f3f |
| 08-Mar-2023 |
guenther <guenther@openbsd.org> |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
#
ae17c7f7 |
| 08-Feb-2023 |
tb <tb@openbsd.org> |
finger/mail: two trivial functions were missed in earlier ansi passes
|
#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
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
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.
show more ...
|
#
cd9ca5b7 |
| 16-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Modernize allocation by:
* removing unneeded casts of void* return values * replacing varied and creative error messages with the allocation function's name * replacing errx() with err() so th
Modernize allocation by:
* removing unneeded casts of void* return values * replacing varied and creative error messages with the allocation function's name * replacing errx() with err() so that the errno string is reported
ok beck@, jung@, millert@
show more ...
|
#
6748e6a0 |
| 20-Jan-2015 |
millert <millert@openbsd.org> |
Add support for the "-r fromaddr" flag now that we don't support sendmail flags on the command line. Also allow "from" to be set in mailrc. Use sendmail's "-t" flag when executing sendmail instead of
Add support for the "-r fromaddr" flag now that we don't support sendmail flags on the command line. Also allow "from" to be set in mailrc. Use sendmail's "-t" flag when executing sendmail instead of specifying the list of recipients in argv. The "-f" flag will be used to set the from address if specified.
show more ...
|
#
691235ad |
| 06-Apr-2011 |
miod <miod@openbsd.org> |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' for chars.
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
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 (th
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
show more ...
|
#
cca813fe |
| 05-Sep-2009 |
tobias <tobias@openbsd.org> |
Fixed typo in comment.
ok millert
|
#
622e0d57 |
| 23-Jul-2009 |
martynas <martynas@openbsd.org> |
elide a little bit later, the final list, after From has been appended. properly removes if there's a dup in from & to. ok millert@
|
#
0ab8ef84 |
| 16-Jul-2008 |
martynas <martynas@openbsd.org> |
- use strncmp/strncasecmp instead of comparing by character - simplify istrlcpy, no need to check for isupper - line[0] is redundant, because strcasecmp will take care of it ok millert@
|
#
f75387cb |
| 03-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
bb098db6 |
| 12-Aug-2002 |
aaron <aaron@openbsd.org> |
Swap args to calloc(3) so they are in the correct order; art@ ok.
|
#
d984daca |
| 21-Nov-2001 |
millert <millert@openbsd.org> |
o kill strcpy() o check return values of malloc and friends o use strdup() when sensible
|
#
4a9caef2 |
| 21-Nov-2001 |
millert <millert@openbsd.org> |
o ANSIfy o Style nits o Use const to silent stupid -Wall warnings o strnc{py,at} -> strlc{py,at} o Use strpbrk() instead of homegrown anyof() o Use NULL instead of #defines with 0 cast to a pointer T
o ANSIfy o Style nits o Use const to silent stupid -Wall warnings o strnc{py,at} -> strlc{py,at} o Use strpbrk() instead of homegrown anyof() o Use NULL instead of #defines with 0 cast to a pointer This still could use a proper audit
show more ...
|
#
7f56ba93 |
| 20-Nov-2001 |
millert <millert@openbsd.org> |
Major signal overhaul. We no longer longjmp all over the place. Instead, routines responsible to gathering user input (or in some cases outputting data) catch the signals and set flags as needed. Be
Major signal overhaul. We no longer longjmp all over the place. Instead, routines responsible to gathering user input (or in some cases outputting data) catch the signals and set flags as needed. Because of this some handlers are install without the SA_RESTART flag so syscalls are not restarted and we can check the flag. All signal handlers are now safe.
This should make the flow of control a bit more grokable but the code is still ugly.
show more ...
|
#
cd7f95d9 |
| 19-Jan-2001 |
millert <millert@openbsd.org> |
More fixes from Don Beusee: - edit and other interactive commands have no stdin (making the command completely broken). - messages with "From " line having date format with -0800 type of timezone
More fixes from Don Beusee: - edit and other interactive commands have no stdin (making the command completely broken). - messages with "From " line having date format with -0800 type of timezone are not recognized correctly.
show more ...
|
#
ca8b07b0 |
| 16-Jan-2001 |
millert <millert@openbsd.org> |
Changes from Don Beusee: o escape From line with a leading '>' when needed o only print To: address and Subject lines if actually present o new variable 'allnet' to treat user@foo and user@bar as the
Changes from Don Beusee: o escape From line with a leading '>' when needed o only print To: address and Subject lines if actually present o new variable 'allnet' to treat user@foo and user@bar as the same "user" o folders command now takes an optional argument like ls. o new "pipe" (|) command to pipe the message through an arbitrary command o make header display format the same as SunOS 4.1.3 /usr/ucb/mail o tilde commands work regardless of interactive mode. o fix "read: Interrupted system call" error by retrying if EINTR o expanded help file Changes by me: o read the help file via the PAGER as it is now more than 24 lines long
show more ...
|
#
5c85bdad |
| 02-Aug-2000 |
millert <millert@openbsd.org> |
$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zero
|
#
b638aa94 |
| 30-Jun-2000 |
millert <millert@openbsd.org> |
warnx?/errx? paranoia (use "%s" not a bare string unless it is a constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in t
warnx?/errx? paranoia (use "%s" not a bare string unless it is a constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
show more ...
|
#
aa9e54ca |
| 25-Apr-2000 |
millert <millert@openbsd.org> |
When incorporating new messages, clear the "new" count before the inc so the count of new messages is useful afterwards. This makes mail behave more like the SunOS version in this respect.
|
#
36999bed |
| 14-Nov-1997 |
millert <millert@openbsd.org> |
NetBSD changes (mostly comsmetic): replace panic() with calls to err()/errx() use S_IS* instead of doing by hand with S_IF*. Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2)
NetBSD changes (mostly comsmetic): replace panic() with calls to err()/errx() use S_IS* instead of doing by hand with S_IF*. Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2) Use _POSIX_VDISABLE, not 0 Kill register
show more ...
|
#
e069db6b |
| 30-Jul-1997 |
millert <millert@openbsd.org> |
Make istrcpy() take a size (not length) field, now called istrncpy(). Change some strcpy() -> strncpy() out of paranoia.
|
#
41f01588 |
| 30-Jul-1997 |
millert <millert@openbsd.org> |
Fix one possible oflow (not exploitable) and do a wee bit of KNF. Much more remains to be done.
|
#
c318c72b |
| 14-Jul-1997 |
millert <millert@openbsd.org> |
NOSTR -> NULL Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
|
#
f0e43013 |
| 13-Jul-1997 |
millert <millert@openbsd.org> |
bcopy() -> memcpy() and fix some casts.
|