summaryrefslogtreecommitdiff
path: root/sysutils/ipmitool/files/patch-src_ipmievd.c
diff options
context:
space:
mode:
authorOlivier Cochard <olivier@FreeBSD.org>2024-10-02 16:25:59 +0200
committerOlivier Cochard <olivier@FreeBSD.org>2024-10-02 16:28:55 +0200
commite60df8753fdc7ae21a19ff5999e1d6e55965175e (patch)
tree75309735df1d7933241ba786fd76f2c52b399de6 /sysutils/ipmitool/files/patch-src_ipmievd.c
parentnet/redpanda-connect: update to version 4.37.0 (diff)
sysutils/ipmitool: Fix path run and argument parsing with ipmievd
PR: 281805 Approved by: zi (maintainer) Sponsored by: Netflix
Diffstat (limited to 'sysutils/ipmitool/files/patch-src_ipmievd.c')
-rw-r--r--sysutils/ipmitool/files/patch-src_ipmievd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/ipmitool/files/patch-src_ipmievd.c b/sysutils/ipmitool/files/patch-src_ipmievd.c
new file mode 100644
index 000000000000..e59859fe2728
--- /dev/null
+++ b/sysutils/ipmitool/files/patch-src_ipmievd.c
@@ -0,0 +1,20 @@
+--- src/ipmievd.c.orig 2022-09-01 18:42:31 UTC
++++ src/ipmievd.c
+@@ -55,7 +55,7 @@
+ #endif
+
+ #ifndef _PATH_RUN
+-# define _PATH_RUN "/run/"
++# define _PATH_RUN "/var/run/"
+ #endif
+
+ #ifdef IPMI_INTF_OPEN
+@@ -730,7 +730,7 @@ ipmievd_main(struct ipmi_event_intf * eintf, int argc,
+ return (-1);
+ }
+ }
+- else if (strcasecmp(argv[i], "pidfile=") == 0) {
++ else if (strncasecmp(argv[i], "pidfile=",8) == 0) {
+ memset(pidfile, 0, 64);
+ strncpy(pidfile, argv[i]+8,
+ __min(strlen((const char *)(argv[i]+8)), 63));