diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-21 23:41:42 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-24 18:23:15 +0200 |
commit | 95f5e7963a36b7b68859ce91ae4b232088bbaa09 (patch) | |
tree | b5216b8dc726d1539d9960a43957cb9da2e1ebd1 /src/db/sysdb_sudo.c | |
parent | 77f445dbaecc8e792e1ad42e3742800ad141bee0 (diff) | |
download | sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.gz sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.xz sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.zip |
SYSDB: Remove unnecessary domain parameter from several sysdb calls
The domain can be read from the sysdb object. Removing the domain string
makes the API more self-contained.
Diffstat (limited to 'src/db/sysdb_sudo.c')
-rw-r--r-- | src/db/sysdb_sudo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index e1434e254..39b1504da 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -545,8 +545,7 @@ errno_t sysdb_sudo_purge_all(struct sysdb_ctx *sysdb) tmp_ctx = talloc_new(NULL); NULL_CHECK(tmp_ctx, ret, done); - base_dn = sysdb_custom_subtree_dn(sysdb, tmp_ctx, sysdb->domain->name, - SUDORULE_SUBDIR); + base_dn = sysdb_custom_subtree_dn(sysdb, tmp_ctx, SUDORULE_SUBDIR); NULL_CHECK(base_dn, ret, done); ret = sysdb_delete_recursive(sysdb, base_dn, true); |