mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Fixed typo in exec_ptrace.c
This commit is contained in:
parent
3e12cacc0f
commit
f47c88065a
@ -1386,7 +1386,7 @@ script_matches(const char *script, const char *execpath, int argc,
|
||||
/* Match interpreter. */
|
||||
if (!pathname_matches(execpath, interp, true)) {
|
||||
/* 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. */
|
||||
if (interp_args == NULL ||
|
||||
(argc > 1 && strcmp(interp_args, argv[2]) == 0)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user