mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
[PATCH] correct correction for error path for PROGRAM execution
This commit is contained in:
parent
584d412bf0
commit
7ff56624f8
@ -415,9 +415,8 @@ static int execute_program(struct udevice *udev, const char *path, char *value,
|
||||
dup2(fds[1], STDOUT_FILENO);
|
||||
retval = execv(arg, argv);
|
||||
|
||||
err(KEY_PROGRAM " execution of '%s' failed", path);
|
||||
retval = -1;
|
||||
break;
|
||||
err("exec of program failed");
|
||||
_exit(1);
|
||||
case -1:
|
||||
err("fork of '%s' failed", path);
|
||||
retval = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user