If execve() fails, leave it to the plugin to print an error string.

This commit is contained in:
Todd C. Miller
2010-04-13 07:39:06 -04:00
parent e472e4ae01
commit 40533f381e

View File

@@ -835,7 +835,6 @@ script_child(const char *path, char *argv[], char *envp[], int backchannel, int
/* setup tty and exec command */ /* setup tty and exec command */
script_run(path, argv, envp, rbac); script_run(path, argv, envp, rbac);
warning("unable to execute %s", path); /* XXX - leave this to plugin? */
cstat.type = CMD_ERRNO; cstat.type = CMD_ERRNO;
cstat.val = errno; cstat.val = errno;
send(backchannel, &cstat, sizeof(cstat), 0); send(backchannel, &cstat, sizeof(cstat), 0);