mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
helper: Fix stderr file descriptor
The third file descriptor is STDERR_FILENO, not STDOUT_FILENO
This commit is contained in:
parent
5cf436056f
commit
11c7605c0d
@ -935,7 +935,7 @@ ipmi_start_daemon(struct ipmi_intf *intf)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
ret = dup(fd);
|
ret = dup(fd);
|
||||||
if (ret != STDOUT_FILENO) {
|
if (ret != STDERR_FILENO) {
|
||||||
lprintf(LOG_ERR, "failed to reset stderr: %s (%d)", strerror(errno), errno);
|
lprintf(LOG_ERR, "failed to reset stderr: %s (%d)", strerror(errno), errno);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user