2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

When the -d option is used, remove aliases used by the non-converted

Defaults settings if the aliases are not also referenced by userspecs.
This commit is contained in:
Todd C. Miller
2018-04-09 11:13:33 -06:00
parent 8c64cd97d2
commit 9e91d3f451
3 changed files with 186 additions and 9 deletions

View File

@@ -256,7 +256,7 @@ struct rbtree *replace_aliases(struct rbtree *new_aliases);
const char *alias_add(char *name, int type, char *file, int lineno, struct member *members);
const char *alias_type_to_string(int alias_type);
int alias_compare(const void *a1, const void *a2);
struct alias *alias_get(char *name, int type);
struct alias *alias_get(const char *name, int type);
struct alias *alias_remove(char *name, int type);
bool alias_find_used(struct rbtree *used_aliases);
void alias_apply(int (*func)(void *, void *), void *cookie);