Do not follow symbolic links in sudoedit by default. This behavior
can be controlled by the sudoedit_follow Defaults flag as well as the FOLLOW/NOFOLLOW tags.
This commit is contained in:
@@ -715,6 +715,11 @@ command_info_to_details(char * const info[], struct command_details *details)
|
||||
SET(details->flags, CD_SUDOEDIT);
|
||||
break;
|
||||
}
|
||||
if (strncmp("sudoedit_follow=", info[i], sizeof("sudoedit_follow=") - 1) == 0) {
|
||||
if (sudo_strtobool(info[i] + sizeof("sudoedit_follow=") - 1) == true)
|
||||
SET(details->flags, CD_SUDOEDIT_FOLLOW);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
if (strncmp("timeout=", info[i], sizeof("timeout=") - 1) == 0) {
|
||||
|
Reference in New Issue
Block a user