mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-04 05:01:36 +00:00
helper: Fix stderr file descriptor
The third file descriptor is STDERR_FILENO, not STDOUT_FILENO
This commit is contained in:
committed by
Alexander Amelkin
parent
5cf436056f
commit
11c7605c0d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user