File: 40_fix-bashism.diff

package info (click to toggle)
rkhunter 1.4.6-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,132 kB
  • sloc: sh: 14,367; perl: 120; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix a bashism
Author: Francois Marier <francois@debian.org>
Bug-Debian: https://bugs.debian.org/892012
Forwarded: https://sourceforge.net/p/rkhunter/patches/46/
Last-Update: 2018-03-04

--- a/files/rkhunter
+++ b/files/rkhunter
@@ -14792,7 +14792,7 @@ ${FOUND_PROCS}"
 								if [ -n "${RKH_SHM_PATH}" ]; then
 									RKHTMPVAR2=`name2text "${RKH_SHM_PATH_STRIPPED}"`
 
-									if [ "${RKH_SHM_PATH}" == "${RKH_SHM_PATH_STRIPPED}" ]; then
+									if [ "${RKH_SHM_PATH}" = "${RKH_SHM_PATH_STRIPPED}" ]; then
 										SEGS_FOUND="${SEGS_FOUND}
 1:${RKHTMPVAR2} ${RKH_SHM_CPID} ${RKH_SHM_OWNER} ${RKH_SHM_SIZE_HUMAN} ${IPC_SSIZE_HUMAN}"
 									else