Lines 1-6
Link Here
|
1 |
--- files/rkhunter.orig 2014-03-12 20:54:55 UTC |
1 |
--- files/rkhunter.orig 2018-02-24 23:08:27 UTC |
2 |
+++ files/rkhunter |
2 |
+++ files/rkhunter |
3 |
@@ -7275,6 +7275,9 @@ download_file() { |
3 |
@@ -4750,7 +4750,12 @@ get_sha_hash_function() { |
|
|
4 |
return |
5 |
fi |
6 |
|
7 |
- HFUNC=`find_cmd sha${SHA_SIZE}sum` |
8 |
+ case ${OPERATING_SYSTEM} in |
9 |
+ FreeBSD) |
10 |
+ HFUNC=`find_cmd sha${SHA_SIZE}` ;; |
11 |
+ *) |
12 |
+ HFUNC=`find_cmd sha${SHA_SIZE}sum` ;; |
13 |
+ esac |
14 |
|
15 |
if [ -z "${HFUNC}" ]; then |
16 |
HFUNC=`find_cmd sha${SHA_SIZE}` |
17 |
@@ -7522,6 +7527,9 @@ download_file() { |
4 |
rm -f "${OUTPUT_FILE}" >/dev/null 2>&1 |
18 |
rm -f "${OUTPUT_FILE}" >/dev/null 2>&1 |
5 |
|
19 |
|
6 |
case "${RKHWEBCMD_BASE}" in |
20 |
case "${RKHWEBCMD_BASE}" in |