mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Make noexec parameter to sudo_execve() bool.
This commit is contained in:
@@ -407,7 +407,7 @@ selinux_execve(const char *path, char *const argv[], char *const envp[],
|
||||
memcpy(&nargv[2], &argv[1], argc * sizeof(char *)); /* copies NULL */
|
||||
|
||||
/* sesh will handle noexec for us. */
|
||||
sudo_execve(sesh, nargv, envp, 0);
|
||||
sudo_execve(sesh, nargv, envp, false);
|
||||
serrno = errno;
|
||||
free(nargv);
|
||||
errno = serrno;
|
||||
|
Reference in New Issue
Block a user