Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-mgmt/pfSense-pkg-arpwatch: Add missing dot between hostname and domain #1408

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

leres
Copy link
Contributor

@leres leres commented Feb 5, 2025

I saw arpwatch notices where the hostname was missing a dot:

[hostname=pear, domain=example.com]
Subject: pearexample.com - Arpwatch Notification : changed ethernet address

The bug is in sendmail_proxy.php was surprisingly resistant to local patching. Today I tracked down that it's created at run time by pfSense-pkg-arpwatch. I tracked it to 99368e3:

- $send_subject = "{$config['system']['hostname']}.{$config['system']['domain']} - Arpwatch Notification : {$subject[1]}";
+ $send_subject = config_get_path('system/hostname') . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";

This fix for this regression is to add a string with the dot.

…omain

I saw arpwatch notices here the hostname was missing a dot:

    [hostname=pear, domain=example.com]
    Subject: pearexample.com - Arpwatch Notification : changed ethernet address

The bug is in sendmail_proxy.php is was surprisingly resistent
to local patching. Today I tracked down that it's created at run
time by pfSense-pkg-arpwatch. I tracked it to 99368e3:

 -       $send_subject = "{$config['system']['hostname']}.{$config['system']['domain']} - Arpwatch Notification : {$subject[1]}";
 +       $send_subject = config_get_path('system/hostname') . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";

This fix for this regression is to add a string with the dot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant