63ed82d084
- Update to latest ipmitool sources. This is version 1.8.15 (git tag: IPMITOOL_1_8_15) plus mainline patches up to commit 708be8bc450f907cddb6d9e4b83aee6ba67b7d04 Date: Fri Jan 9 12:48:35 2015 +0100 OBS-URL: https://build.opensuse.org/request/show/281420 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=28
36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
Index: ipmitool-1.8.15/lib/helper.c
|
|
===================================================================
|
|
--- ipmitool-1.8.15.orig/lib/helper.c 2015-01-14 14:28:25.104693872 +0100
|
|
+++ ipmitool-1.8.15/lib/helper.c 2015-01-14 14:28:30.392693957 +0100
|
|
@@ -659,7 +659,6 @@
|
|
#endif
|
|
|
|
chdir("/");
|
|
- umask(0);
|
|
|
|
for (fd=0; fd<64; fd++) {
|
|
if (fd != intf->fd)
|
|
Index: ipmitool-1.8.15/src/ipmievd.c
|
|
===================================================================
|
|
--- ipmitool-1.8.15.orig/src/ipmievd.c 2015-01-14 14:28:25.112693873 +0100
|
|
+++ ipmitool-1.8.15/src/ipmievd.c 2015-01-14 14:28:30.392693957 +0100
|
|
@@ -701,6 +701,7 @@
|
|
int i, rc;
|
|
int daemon = 1;
|
|
struct sigaction act;
|
|
+ mode_t oldumask;
|
|
|
|
memset(pidfile, 0, 64);
|
|
sprintf(pidfile, "%s%d", DEFAULT_PIDFILE, eintf->intf->devnum);
|
|
@@ -762,8 +763,9 @@
|
|
|
|
ipmi_start_daemon(eintf->intf);
|
|
|
|
- umask(022);
|
|
+ oldumask = umask(022);
|
|
fp = ipmi_open_file_write(pidfile);
|
|
+ umask(oldumask);
|
|
if (fp == NULL) {
|
|
/* Failed to get fp on PID file -> exit. */
|
|
log_halt();
|