diff options
author | Krzysztof Klimonda <kklimonda@ubuntu.com> | 2011-11-21 16:10:51 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-21 16:16:11 -0500 |
commit | 87c9241da76f8a7c93095649b2c09a2a07190a36 (patch) | |
tree | 9054c4de4791ef64774aabd22412b0accc41b6a7 | |
parent | 872f2d32d979a1dd2145667487f170fec8b5189a (diff) | |
download | sssd-87c9241da76f8a7c93095649b2c09a2a07190a36.tar.gz sssd-87c9241da76f8a7c93095649b2c09a2a07190a36.tar.bz2 sssd-87c9241da76f8a7c93095649b2c09a2a07190a36.zip |
Fix FTBFS related to -Werror=format-security
-rw-r--r-- | src/db/sysdb_search.c | 2 | ||||
-rw-r--r-- | src/db/sysdb_upgrade.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c index f5cd2cf7..2a09c5b4 100644 --- a/src/db/sysdb_search.c +++ b/src/db/sysdb_search.c @@ -328,7 +328,7 @@ int sysdb_enumgrent(TALLOC_CTX *mem_ctx, } ret = ldb_search(sysdb->ldb, tmp_ctx, &res, base_dn, - LDB_SCOPE_SUBTREE, attrs, fmt_filter); + LDB_SCOPE_SUBTREE, attrs, "%s", fmt_filter); if (ret) { ret = sysdb_error_to_errno(ret); goto done; diff --git a/src/db/sysdb_upgrade.c b/src/db/sysdb_upgrade.c index f91d9fc9..808b31f1 100644 --- a/src/db/sysdb_upgrade.c +++ b/src/db/sysdb_upgrade.c @@ -82,7 +82,7 @@ int sysdb_upgrade_01(struct ldb_context *ldb, const char **ver) ret = ldb_search(ldb, tmp_ctx, &res, basedn, LDB_SCOPE_SUBTREE, - attrs, filter); + attrs, "%s", filter); if (ret != LDB_SUCCESS) { ret = EIO; goto done; |