summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Klimonda <kklimonda@ubuntu.com>2011-11-21 16:10:51 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-11-21 16:16:11 -0500
commit87c9241da76f8a7c93095649b2c09a2a07190a36 (patch)
tree9054c4de4791ef64774aabd22412b0accc41b6a7 /src
parent872f2d32d979a1dd2145667487f170fec8b5189a (diff)
downloadsssd-87c9241da76f8a7c93095649b2c09a2a07190a36.tar.gz
sssd-87c9241da76f8a7c93095649b2c09a2a07190a36.tar.xz
sssd-87c9241da76f8a7c93095649b2c09a2a07190a36.zip
Fix FTBFS related to -Werror=format-security
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_search.c2
-rw-r--r--src/db/sysdb_upgrade.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index f5cd2cf73..2a09c5b47 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 f91d9fc99..808b31f17 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;