summaryrefslogtreecommitdiff
path: root/debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch')
-rw-r--r--debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch b/debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch
new file mode 100644
index 0000000..1179a99
--- /dev/null
+++ b/debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch
@@ -0,0 +1,28 @@
+Description: Fix unsupported LAN parameter lookup command returns an error
+Author: Daniel Van Allen <dvanallen@google.com>
+Origin: https://github.com/Cray-HPE/ipmitool/commit/b7c0d66cd6b9eaf45648f6b2651b6ef5158de811
+Bug: https://github.com/ipmitool/ipmitool/issues/388
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061770
+Forwarded: not-needed
+Last-Update: 2024-07-05
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/lib/ipmi_lanp.c
+===================================================================
+--- trunk.orig/lib/ipmi_lanp.c
++++ trunk/lib/ipmi_lanp.c
+@@ -236,8 +236,12 @@ get_lan_param_select(struct ipmi_intf *i
+ /* We treat them as valid but empty response */
+ p->data = NULL;
+ p->data_len = 0;
+- rc = p;
+- /* fall through */
++ lprintf(LOG_INFO, "Get LAN Parameter '%s' command unsupported: %s",
++ p->desc,
++ specific_val2str(rsp->ccode,
++ get_lan_cc_vals,
++ completion_code_vals));
++ return p;
+ default:
+ /* other completion codes are treated as error */
+ lprintf(LOG_INFO, "Get LAN Parameter '%s' command failed: %s",