mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
t-runner: Check for errors after opening file
This commit is contained in:
parent
e3551ab56b
commit
6fea4e6f4f
@ -524,6 +524,9 @@ static pid_t execute_program(char *argv[], char *envp[], bool wait,
|
||||
S_IRUSR | S_IWUSR);
|
||||
}
|
||||
|
||||
if (fd == -1)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
dup2(fd, 1);
|
||||
dup2(fd, 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user