1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

[PATCH] correct correction for error path for PROGRAM execution

This commit is contained in:
kay.sievers@vrfy.org 2005-03-29 04:23:56 +02:00 committed by Greg KH
parent 584d412bf0
commit 7ff56624f8

View File

@ -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;