2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Fixed typo in exec_ptrace.c

This commit is contained in:
Arjen Lentz 2024-09-04 20:27:08 +10:00 committed by Todd C. Miller
parent 3e12cacc0f
commit f47c88065a

View File

@ -1386,7 +1386,7 @@ script_matches(const char *script, const char *execpath, int argc,
/* Match interpreter. */ /* Match interpreter. */
if (!pathname_matches(execpath, interp, true)) { if (!pathname_matches(execpath, interp, true)) {
/* It is possible for the interpreter to be a script too. */ /* It is possible for the interpreter to be a script too. */
if (argv > 0 && strcmp(interp, argv[1]) == 0) { if (argc > 0 && strcmp(interp, argv[1]) == 0) {
/* Interpreter args must match for *this* interpreter. */ /* Interpreter args must match for *this* interpreter. */
if (interp_args == NULL || if (interp_args == NULL ||
(argc > 1 && strcmp(interp_args, argv[2]) == 0)) { (argc > 1 && strcmp(interp_args, argv[2]) == 0)) {