ports/security/sshguard/files/patch-src_sshguard.in
Rodrigo Osorio 5d22a6665b security/sshguard: Upgrade to 2.4.2
Major changes:
    * Recognize rejections from Postfix's postscreen daemon
    * The parser can now be changed using the PARSER and POST_PARSER options
    * Remove some false positive attack signatures for SSH and Cyrus
    * Adjust log verbosity of some log messages
    * The firewalld backend now uses firewall-cmd instead of iptables to flush block lists

Full changelog : https://bitbucket.org/sshguard/sshguard/src/v2.4.2/CHANGELOG.rst

PR:			256575
Reported by:	<sirdice@gmail.com>
Approved by:	Kevin Zheng <kevinz5000@gmail.com> (maintainer)
2021-06-14 23:20:14 +02:00

19 lines
505 B
Text

--- src/sshguard.in.orig 2021-06-06 14:54:07 UTC
+++ src/sshguard.in
@@ -98,14 +98,8 @@ elif [ -z "$tailcmd" ]; then
exit 1
fi
-if [ -n "$PID_FILE" ]; then
- if [ ! -e "$PID_FILE" ]; then
- echo "$$" > $PID_FILE
- else
- err "$PID_FILE already exists; is SSHGuard already running?"
- exit 1
- fi
-fi
+# Already checked by rc(8)
+echo "$$" > $PID_FILE
# Select PARSER from configuration file or use default. Add POST_PARSER from
# configuration file if it exists.