|
Revision tags: release/13.3.0 |
|
| #
961bcbee |
| 30-Dec-2023 |
Lexi Winter <lexi@le-Fay.ORG> |
mailwrapper(8): change behaviour if mailer.conf cannot be opened
Previously, mailwrapper(8) would default to invoking _PATH_DEFAULTMTA (i.e., dma) if mailer.conf couldn't be opened for any reason, i
mailwrapper(8): change behaviour if mailer.conf cannot be opened
Previously, mailwrapper(8) would default to invoking _PATH_DEFAULTMTA (i.e., dma) if mailer.conf couldn't be opened for any reason, including transient errors like ENFILE. This behaviour is undesirable, because if the administrator has configured a different MTA in mailer.conf, they almost certainly don't want mailwrapper to unpredictably fall back to the compiled-in default; and in any case, the default MTA is probably not running, meaning the mail may be queued and then never delivered, which is worse than not accepting it to begin with.
Change this behaviour depending on why mailer.conf can't be opened:
- If it doesn't exist, keep the existing behaviour of falling back to the default MTA, on the assumption that this is a reasonable default if mailer.conf hasn't been configured at all.
- If it cannot be opened for any other reason, do not invoke an MTA and instead return an error to the caller.
PR: 25218 Reviewed by: imp, emaste, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/969
show more ...
|
| #
4d65a7c6 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
usr.sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
| #
56d11d4a |
| 18-Nov-2020 |
Stefan Eßer <se@FreeBSD.org> |
Make use of the getlocalbase() function for run-time adjustment of the local software base directory, as committed in SVN rev. 367813.
The pkg and mailwrapper programs used the LOCALBASE environment
Make use of the getlocalbase() function for run-time adjustment of the local software base directory, as committed in SVN rev. 367813.
The pkg and mailwrapper programs used the LOCALBASE environment variable for this purpose and this functionality is preserved by getlocalbase().
After this change, the value of the user.localbase sysctl variable is used if present (and not overridden in the environment).
The nvmecontrol program gains support of a dynamic path to its plugin directory with this update.
Differential Revision: https://reviews.freebsd.org/D27237
show more ...
|
| #
8e103108 |
| 15-Nov-2020 |
Scott Long <scottl@FreeBSD.org> |
Revert the whole getlocalbase() set of changes while a different design is hashed out.
|
| #
1b249101 |
| 15-Nov-2020 |
Scott Long <scottl@FreeBSD.org> |
Fix the previous revision, it suffered from an incomplete change to the getlocalbase API. Also don't erroneously subtract the lenth from the buffer a second time.
|
| #
7ca0d540 |
| 14-Nov-2020 |
Scott Long <scottl@FreeBSD.org> |
Replace hardcoded references to _PATH_LOCALBASE with calls to getlocalbase.3
Reviewed by: imp, se
|
| #
1f474190 |
| 27-Oct-2020 |
Stefan Eßer <se@FreeBSD.org> |
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE
Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, i
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE
Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories.
This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software.
In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory.
This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit.
Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942
show more ...
|
|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
4b49587c |
| 06-Jan-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r327341 through r327623.
|
| #
8b081eaa |
| 02-Jan-2018 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Revert r326844
There has been some fallout from the change. The change itself was not valueable enough to spend time investigating the corner cases, let's just back it out.
Reported by: flo
|
| #
b37b0924 |
| 14-Dec-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Replace usage of fparselen(3) by a getline(3)
This allow to remove the dependency on libutil
|
| #
1de7b4b8 |
| 27-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0 |
|
| #
9268022b |
| 19-Nov-2014 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Merge from head@274682
|
|
Revision tags: release/10.1.0 |
|
| #
4e27d36d |
| 17-Sep-2014 |
Neel Natu <neel@FreeBSD.org> |
IFC @r271694
|
| #
c9daea0b |
| 05-Sep-2014 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
Sync to HEAD@r271160.
|
| #
24ed0a57 |
| 27-Aug-2014 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set)
Phabric: https://reviews.freebsd.org/D412 Reviewed by: bdrewery MFC after: 2 weeks Relnotes: yes
|
|
Revision tags: release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0 |
|
| #
f347c17f |
| 29-Apr-2010 |
Xin LI <delphij@FreeBSD.org> |
MFC r205938:
Sync with OpenBSD: - avoid coredump when there's only one token on a line; - Use calloc(); - Remove a line inherited from example mdoc.
Obtained from: OpenBSD
|
| #
a4bf5fb9 |
| 28-Apr-2010 |
Kirk McKusick <mckusick@FreeBSD.org> |
Update to current version of head.
|
| #
ded78408 |
| 30-Mar-2010 |
Xin LI <delphij@FreeBSD.org> |
Sync with OpenBSD: - avoid coredump when there's only one token on a line; - Use calloc(); - Remove a line inherited from example mdoc.
Obtained from: OpenBSD MFC after: 1 month
|
|
Revision tags: release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
| #
49fe7301 |
| 07-Aug-2006 |
Xin LI <delphij@FreeBSD.org> |
Update NetBSD and OpenBSD SCM tags to match the reality. Note that NetBSD revisions 1.8 and 1.9 are not actually applied to our code base because we have solved the problem differently, therefore, t
Update NetBSD and OpenBSD SCM tags to match the reality. Note that NetBSD revisions 1.8 and 1.9 are not actually applied to our code base because we have solved the problem differently, therefore, these changes can be safely skipped.
show more ...
|
| #
8fe1b8c0 |
| 06-Jun-2006 |
Xin LI <delphij@FreeBSD.org> |
Cleanups for mailwrapper(8): - K&R -> ANSI prototype [O] - Do not bother to do free right before exit() or execve() [O] - Remove some dead code in addarg() - Make additional parameters specified
Cleanups for mailwrapper(8): - K&R -> ANSI prototype [O] - Do not bother to do free right before exit() or execve() [O] - Remove some dead code in addarg() - Make additional parameters specified in mailer.conf(5) actually work and document the fact. [N] - Avoid using __progname but instead use getprogname() and setprogname() to provide more sensible messages. [O, N] - Update $OpenBSD$ and $NetBSD$ to reflect the fact that we have sync'ed with their code. - WARNS=6
Obtained from/Inspired by: OpenBSD [O], NetBSD [N] (partially)
show more ...
|
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
| #
54ede02d |
| 06-Jul-2003 |
Philippe Charnier <charnier@FreeBSD.org> |
add FBSDID
|
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1 |
|
| #
d89167b4 |
| 11-Jul-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
de-__P()
|
|
Revision tags: release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
| #
8c37834d |
| 09-Aug-2001 |
Dima Dorfman <dd@FreeBSD.org> |
Don't free memory that was never allocated. This fixes a core dump in the case where both the config file and the default MTA don't exist.
PR: 29521 Submitted by: marius@alchemy.franken.de
|
| #
57b6c4a5 |
| 04-Jun-2001 |
Paul Richards <paul@FreeBSD.org> |
You can't free a string and then use it as the error message to errx. Instead use warn to print the string, then cleanup and exit normally.
This fixes a core dump if the executable to be run doesn't
You can't free a string and then use it as the error message to errx. Instead use warn to print the string, then cleanup and exit normally.
This fixes a core dump if the executable to be run doesn't exist.
show more ...
|