Remove check_sudoedit function pointer in struct sudo_policy.
Instead, sudo will set sudoedit=true in the settings array. The plugin should check for this and modify argv_out as appropriate in check_policy.
This commit is contained in:
@@ -143,8 +143,10 @@ sudo_edit(struct command_details *command_details, char *argv[], char *envp[])
|
||||
else
|
||||
editor_argc++;
|
||||
}
|
||||
if (nfiles == 0)
|
||||
if (nfiles == 0) {
|
||||
warningx("plugin error: missing file list for sudoedit");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* For each file specified by the user, make a temporary version
|
||||
|
Reference in New Issue
Block a user