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

For ldap/sssd, include defaults in the generate privilege unless

we are listing in short mode (in which case we convert them to tags
if possible).  Fixes a problem where sudoOptions were not being
applied to the command.
This commit is contained in:
Todd C. Miller
2018-08-02 14:45:00 -06:00
parent 171686c422
commit 608574a219
6 changed files with 9 additions and 9 deletions

View File

@@ -356,7 +356,7 @@ sss_to_sudoers(struct sudo_sss_handle *handle,
priv = sudo_ldap_role_to_priv(cn, hosts, runasusers, runasgroups,
cmnds, opts, notbefore ? notbefore[0] : NULL,
notafter ? notafter[0] : NULL, false, long_list, val_array_iter);
notafter ? notafter[0] : NULL, false, !short_list, val_array_iter);
cleanup:
if (cn_array != NULL)