From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. c2eba600d753df95a81707f7da0ab172ed864ab0
Date: Sat, 20 Sep 2025 14:03:11 +0000 (UTC) [thread overview]
Message-ID: <4cTWL76F2Xz2xJW@people01.haj.ipfire.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via c2eba600d753df95a81707f7da0ab172ed864ab0 (commit)
from 02dfa2e99ed48033b55b0d106b16d9bf5cd43c9d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c2eba600d753df95a81707f7da0ab172ed864ab0
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Sat Sep 20 14:02:01 2025 +0000
arpwatch: Fix the envelope sender
arpwatch invokes sendmail without passing the envelope sender
explicitely. This causes that mails can get rejected if the From: header
does not match the envelope sender.
This patch passes the correct address as the envelope sender.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
lfs/arpwatch | 5 ++++-
src/patches/arpwatch/fix-envelope-sender.patch | 11 +++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 src/patches/arpwatch/fix-envelope-sender.patch
Difference in files:
diff --git a/lfs/arpwatch b/lfs/arpwatch
index b4bce7dbb..1b701cd4f 100644
--- a/lfs/arpwatch
+++ b/lfs/arpwatch
@@ -37,7 +37,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = arpwatch
-PAK_VER = 1
+PAK_VER = 2
DEPS =
@@ -97,6 +97,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
# Don't install the initscript
cd $(DIR_APP) && sed -i '/@HAVE_FREEBSD_TRUE@/d' Makefile.in
+ # Fix the envelope sender
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/arpwatch/fix-envelope-sender.patch
+
# Build!
cd $(DIR_APP) && ./configure --prefix=/usr
cd $(DIR_APP) && make $(MAKETUNING)
diff --git a/src/patches/arpwatch/fix-envelope-sender.patch b/src/patches/arpwatch/fix-envelope-sender.patch
new file mode 100644
index 000000000..3c4a6f9ee
--- /dev/null
+++ b/src/patches/arpwatch/fix-envelope-sender.patch
@@ -0,0 +1,11 @@
+--- arpwatch-3.8/report.c~ 2025-09-20 13:57:16.351246657 +0000
++++ arpwatch-3.8/report.c 2025-09-20 13:43:47.777995101 +0000
+@@ -390,7 +390,7 @@
+ close(fd);
+
+ /* Always Deliver interactively (pause when child depth gets large) */
+- execl(sendmail, "sendmail", "-odi", watcher, NULL);
++ execl(sendmail, "sendmail", "-odi", watcher, "-f", watchee, NULL);
+ lg(LOG_ERR, "execl: %s: %s", sendmail, strerror(errno));
+ exit(1);
+ }
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2025-09-20 14:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cTWL76F2Xz2xJW@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox