From eb53aa4fcfc3eb23af60d4f25da6008932cf1bcd Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 23 May 2022 17:49:56 +0200 Subject: [iptables-helper] Use cmp instead of diff --- .../iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/iptables-helper') diff --git a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker index 64afdc9d..03a80b32 100755 --- a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker +++ b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker @@ -30,7 +30,7 @@ reload_rules () { done # No change? Do nothing... - if [ -s "${ALL_RULES}" ] && [ -s "${ALL_RULES}.new" ] && diff "${ALL_RULES}" "${ALL_RULES}.new"; then + if [ -s "${ALL_RULES}" ] && [ -s "${ALL_RULES}.new" ] && cmp "${ALL_RULES}" "${ALL_RULES}.new"; then echo "$1 NOCHANGE" rm -rf -- "${ALL_RULES}.new" "$WAIT" exit 0 -- cgit v1.2.3-55-g7522