aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-24 18:18:28 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-24 18:18:28 +0200
commitf700691ea85fa6125d1537b0322d3fef6a5cae3b (patch)
treefcde252417de492a1568d022b224f1bc47668382 /config
parentd3954a387f8b542a388cb0985ab7d2b603fb0d72 (diff)
downloadpfsense-packages-f700691ea85fa6125d1537b0322d3fef6a5cae3b.tar.gz
pfsense-packages-f700691ea85fa6125d1537b0322d3fef6a5cae3b.tar.bz2
pfsense-packages-f700691ea85fa6125d1537b0322d3fef6a5cae3b.zip
arpwatch - do not create sendmail hardlinks... Evil.
You can end up with orphaned /usr/sbin/sendmail as a copy of sm.php script, causing cron and other unwanted spam even after uninstalling the package. I recall couple of users complaining on the forum, examples: https://forum.pfsense.org/index.php/topic,68004.0.html https://forum.pfsense.org/index.php?topic=74000.msg406041#msg406041 This still is not a proper fix, this shouldn't require and create /usr/sbin/sendmail at all.
Diffstat (limited to 'config')
-rw-r--r--config/arpwatch/arpwatch.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/arpwatch/arpwatch.xml b/config/arpwatch/arpwatch.xml
index aa6a9ae8..dab2a74e 100644
--- a/config/arpwatch/arpwatch.xml
+++ b/config/arpwatch/arpwatch.xml
@@ -149,9 +149,15 @@
<custom_php_install_command>
<![CDATA[
unlink_if_exists("/usr/local/etc/rc.d/arpwatch.sh");
- @link("/usr/sbin/sm.php", "/usr/sbin/sendmail");
+ unlink_if_exists("/usr/sbin/sendmail");
+ symlink("/usr/sbin/sm.php", "/usr/sbin/sendmail");
]]>
</custom_php_install_command>
+ <custom_php_deinstall_command>
+ <![CDATA[
+ unlink_if_exists("/usr/sbin/sendmail");
+ ]]>
+ </custom_php_deinstall_command>
<custom_php_resync_config_command>
<![CDATA[
sync_package_arpwatch();