2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Introduce new_member_all() for code that doesn't include gram.h.

The ldap and sssd back-ends no longer require gram.h which fixes a
compilation issue with IBM LDAP.
This commit is contained in:
Todd C. Miller
2020-11-10 19:36:56 -07:00
parent deb217adf9
commit 55c4f3bddd
6 changed files with 24 additions and 8 deletions

View File

@@ -43,7 +43,6 @@
#include "sudo_lbuf.h"
#include "sudo_ldap.h"
#include "sudo_dso.h"
#include <gram.h>
/* SSSD <--> SUDO interface - do not change */
struct sss_sudo_attr {
@@ -371,9 +370,8 @@ sss_to_sudoers(struct sudo_sss_handle *handle,
TAILQ_INSERT_TAIL(&handle->parse_tree.userspecs, us, entries);
/* We only include rules where the user matches. */
if ((m = calloc(1, sizeof(*m))) == NULL)
if ((m = new_member_all(NULL)) == NULL)
goto oom;
m->type = ALL;
TAILQ_INSERT_TAIL(&us->users, m, entries);
/*