History log of /openbsd/usr.bin/mail/names.c (Results 1 – 25 of 25)
Revision Date Author Comments
# 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 ...


# d6fbb2f1 16-Sep-2018 millert <millert@openbsd.org>

Replace the local getname() and getuserid() functions with calls
to user_from_uid(3) and uid_from_user(3). This requires sprinkling
const in a few places to match the return value of user_from_uid(3

Replace the local getname() and getuserid() functions with calls
to user_from_uid(3) and uid_from_user(3). This requires sprinkling
const in a few places to match the return value of user_from_uid(3).
OK tb@

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 ...


# fd9d383e 16-Dec-2014 millert <millert@openbsd.org>

Add new "expandaddr" flag (disabled by default) to enable recipient
address expansion and document it. Previously, this behavior was
always enabled. Also document how address expansion is performed

Add new "expandaddr" flag (disabled by default) to enable recipient
address expansion and document it. Previously, this behavior was
always enabled. Also document how address expansion is performed,
which used to only be described in the (no longer installed) Mail
Reference Manual. CVE-2014-7844

show more ...


# 0205f8e6 15-Aug-2014 guenther <guenther@openbsd.org>

Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.

ok miod@


# b779915b 29-Apr-2013 okan <okan@openbsd.org>

use FD_CLOEXEC instead of 1; from David Hill

ok otto


# 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 ...


# 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.


# d984daca 21-Nov-2001 millert <millert@openbsd.org>

o kill strcpy()
o check return values of malloc and friends
o use strdup() when sensible


# f1aa970e 21-Nov-2001 millert <millert@openbsd.org>

fix arg reversal that was introduced during ANSIfication


# 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 ...


# 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 ...


# dadf03ba 23-Aug-2000 mickey <mickey@openbsd.org>

repair sendmail options handling


# 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 ...


# 7a75f540 23-Mar-2000 millert <millert@openbsd.org>

When calling sendmail, use "--" to indicate end of command line arguments.
This prevents someone from sneaking arbitrary args to sendmail via
the Reply-To: or From: lines.


# 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 ...


# 88cdb045 31-Jul-1997 millert <millert@openbsd.org>

Another static buffer bytes the dust.


# 0ecc72fc 24-Jul-1997 millert <millert@openbsd.org>

tempnam(3) goes bye bye.


# 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.


# db59c1a6 13-Jul-1997 millert <millert@openbsd.org>

Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.
- handle long lines safely (from NetBSD)
- use puts/fputs and putchar/putc when it makes sense
- use err/errx and warn/warnx whe

Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.
- handle long lines safely (from NetBSD)
- use puts/fputs and putchar/putc when it makes sense
- use err/errx and warn/warnx when it makes sense
- make return() and sizeof() style consisten
- some more buffer safety

show more ...


# 180acc8f 17-Jan-1997 millert <millert@openbsd.org>

r?index -> strr?chr


# 7eb34045 11-Jun-1996 deraadt <deraadt@openbsd.org>

from christos;
- 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 warn

from christos;
- 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.

show more ...


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree