History log of /openbsd-src/libexec/mail.local/locking.c (Results 1 – 15 of 15)
Revision Date Author Comments
# da07b1a3 27-May-2020 millert <millert@openbsd.org>

Remove support for world-writable mail spools.
They won't work any more due to pledge restrictions so just print
an error and exit if the spool is world-writable. OK beck@


# e1869fb3 09-Feb-2020 millert <millert@openbsd.org>

Use sysexits.h exit values to distinguish between tempfail and permfail.
Unix MTAs use the exit value of the MDA (here mail.local) to determine
whether or not a failure to deliver mail should be cons

Use sysexits.h exit values to distinguish between tempfail and permfail.
Unix MTAs use the exit value of the MDA (here mail.local) to determine
whether or not a failure to deliver mail should be considered to be
a temporary or permanent failure. OK semarie@ beck@

show more ...


# c711e483 02-Feb-2020 millert <millert@openbsd.org>

Allow mail.local to be run as non-root.
If mail.local is invoked by a non-root user, open a pipe to
lockspool(1) for file locking. It is only possible to delivery to
a pre-existing mail spool when r

Allow mail.local to be run as non-root.
If mail.local is invoked by a non-root user, open a pipe to
lockspool(1) for file locking. It is only possible to delivery to
a pre-existing mail spool when running mail.local as non-root.
OK gilles@ deraadt@

show more ...


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

show more ...


# 201a6017 17-Jan-2014 tobias <tobias@openbsd.org>

Close file descriptor before next try getting a good one.

ok millert@


# 24091ce7 10-Jan-2011 millert <millert@openbsd.org>

Back out rev 1.2 and use mkstemp(), not mktemp(). OK deraadt@


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


# 668b2622 01-Apr-2006 deraadt <deraadt@openbsd.org>

minor lint cleaning; ok millert


# 70ef01f6 10-Jul-2003 david <david@openbsd.org>

add missing includes
ok deraadt@ tedu@


# 5b48e80a 03-Jul-2002 deraadt <deraadt@openbsd.org>

KNF


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 26958e29 17-Feb-2002 millert <millert@openbsd.org>

Call S_ISLNK with correct variable; Peter Philipp


# cc77d91a 18-Aug-2001 deraadt <deraadt@openbsd.org>

err() -> merr(), and reorder some bugs noted by giannici@neomedia.it; millert helped


# ec1b350a 15-Aug-1998 millert <millert@openbsd.org>

go back to using mktemp, not mkstemp in baditem(); theo


# 09850d41 15-Aug-1998 millert <millert@openbsd.org>

Break out locking code into its own file so it can be shared with lockspool.
Call lockspool when invoked with -H flag for backward compatibility.