mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
sysutils/ipmitool: Fix path run and argument parsing with ipmievd
PR: 281805 Approved by: zi (maintainer) Sponsored by: Netflix
This commit is contained in:
parent
34e132dfa3
commit
e60df8753f
3 changed files with 32 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= ipmitool
|
PORTNAME= ipmitool
|
||||||
PORTVERSION= 1.8.19
|
PORTVERSION= 1.8.19
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= https://codeberg.org/IPMITool/${PORTNAME}/archive/:ipmi \
|
MASTER_SITES= https://codeberg.org/IPMITool/${PORTNAME}/archive/:ipmi \
|
||||||
LOCAL/zi/:iana
|
LOCAL/zi/:iana
|
||||||
|
|
11
sysutils/ipmitool/files/patch-lib_helper.c
Normal file
11
sysutils/ipmitool/files/patch-lib_helper.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- lib/helper.c.orig 2022-09-01 18:42:31 UTC
|
||||||
|
+++ lib/helper.c
|
||||||
|
@@ -54,7 +54,7 @@
|
||||||
|
#ifdef HAVE_PATHS_H
|
||||||
|
# include <paths.h>
|
||||||
|
#else
|
||||||
|
-# define _PATH_RUN "/run/"
|
||||||
|
+# define _PATH_RUN "/var/run/"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <ipmitool/ipmi.h>
|
20
sysutils/ipmitool/files/patch-src_ipmievd.c
Normal file
20
sysutils/ipmitool/files/patch-src_ipmievd.c
Normal file
|
@ -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));
|
Loading…
Add table
Reference in a new issue