Debian Codegraph @

debian/patches/dsa/check_running_kernel_jammy_fix

raw
1 Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel
2 ===================================================================
3 --- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-running-kernel
4 +++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel
5 @@ -133,7 +133,7 @@
6 hdroff="$4"
7
8 if ! which ${filter%% *} >/dev/null; then
9 - echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4 or lzop?" >&2
10 + echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4, lzop, zstd?" >&2
11 exit $UNKNOWN
12 fi
13
14 @@ -162,6 +162,8 @@
15 cat_vmlinux "$image" "\x02\x21\x4c\x18" "lz4 -dc" 0
16 # lzo compressed image
17 cat_vmlinux "$image" "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a" "lzop -dc" 0
18 + # zstd compressed image
19 + cat_vmlinux "$image" "\x28\xb5\x2f\xfd" "zstd -dc" 0
20
21 echo "ERROR: Unable to extract kernel image." 2>&1
22 exit 1