runas_user is in settings not user_info
This commit is contained in:
@@ -140,7 +140,7 @@ policy_open(unsigned int version, sudo_conv_t conversation,
|
||||
}
|
||||
|
||||
/* Only allow commands to be run as root. */
|
||||
for (ui = user_info; *ui != NULL; ui++) {
|
||||
for (ui = settings; *ui != NULL; ui++) {
|
||||
if (strncmp(*ui, "runas_user=", sizeof("runas_user=") - 1) == 0) {
|
||||
runas_user = *ui + sizeof("runas_user=") - 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user