mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Instead of parsing sudoers Defaults twice, parse once while reading
sudoers and then just set the parsed value in update_defaults().
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 1998-2000, 2004, 2007-2015
|
||||
* Copyright (c) 1996, 1998-2000, 2004, 2007-2016
|
||||
* Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
@@ -214,7 +214,7 @@ struct alias {
|
||||
};
|
||||
|
||||
/*
|
||||
* Structure describing a Defaults entry and a list thereof.
|
||||
* Structure describing a Defaults entry in sudoers.
|
||||
*/
|
||||
struct defaults {
|
||||
TAILQ_ENTRY(defaults) entries;
|
||||
@@ -223,6 +223,8 @@ struct defaults {
|
||||
struct member_list *binding; /* user/host/runas binding */
|
||||
int type; /* DEFAULTS{,_USER,_RUNAS,_HOST} */
|
||||
int op; /* true, false, '+', '-' */
|
||||
int idx; /* index into sudo_defs_table */
|
||||
union sudo_defs_val sd_un; /* parsed value */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user