diff options
| author | Peter Holm <pho@FreeBSD.org> | 2021-03-15 11:00:01 +0000 |
|---|---|---|
| committer | Peter Holm <pho@FreeBSD.org> | 2021-03-15 11:00:01 +0000 |
| commit | f619b21d0f42dfef1c82f4d4f0187ed5b563d69e (patch) | |
| tree | 00da231e5f48e9b683c41d8ca7f714860054803a /tools | |
| parent | 805dbff6c36a6cd84491aa53a02315fa025734cc (diff) | |
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/test/stress2/misc/setuid.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/test/stress2/misc/setuid.sh b/tools/test/stress2/misc/setuid.sh index 4703ffe68e77..770c20366f7d 100755 --- a/tools/test/stress2/misc/setuid.sh +++ b/tools/test/stress2/misc/setuid.sh @@ -86,7 +86,7 @@ EOF int main(int argc, char **argv) { - char *av[4]; + char *av[2]; int fd; if (argc == 1) @@ -112,9 +112,8 @@ main(int argc, char **argv) if (chdir("/") != 0) err(1, "chdir"); - av[0] = "nop"; - av[1] = "nop"; - av[3] = 0; + av[0] = "/nop"; + av[1] = 0; if (execve(av[0], av, NULL) == -1) err(1, "execve"); |
