14 lines
500 B
Diff
14 lines
500 B
Diff
|
Index: ipmitool-1.8.18+git20200916.1245aaa387dc/lib/helper.c
|
||
|
===================================================================
|
||
|
--- ipmitool-1.8.18+git20200916.1245aaa387dc.orig/lib/helper.c
|
||
|
+++ ipmitool-1.8.18+git20200916.1245aaa387dc/lib/helper.c
|
||
|
@@ -935,7 +935,7 @@ ipmi_start_daemon(struct ipmi_intf *intf
|
||
|
exit(1);
|
||
|
}
|
||
|
ret = dup(fd);
|
||
|
- if (ret != STDOUT_FILENO) {
|
||
|
+ if (ret != STDERR_FILENO) {
|
||
|
lprintf(LOG_ERR, "failed to reset stderr: %s (%d)", strerror(errno), errno);
|
||
|
exit(1);
|
||
|
}
|