diff options
author | Sumit Bose <sbose@redhat.com> | 2012-08-28 13:03:13 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-09-06 09:24:59 +0200 |
commit | bd7f3e4b17076985479c77a5c68c39bf36c47926 (patch) | |
tree | d1c3c9560871eb9cac88f46857189968623ce6e2 | |
parent | 931e8906803bda26cd5d3efe1ec5c803fedf4876 (diff) | |
download | freeipa-bd7f3e4b17076985479c77a5c68c39bf36c47926.tar.gz freeipa-bd7f3e4b17076985479c77a5c68c39bf36c47926.tar.xz freeipa-bd7f3e4b17076985479c77a5c68c39bf36c47926.zip |
ipasam: replace trim_char() with trim_string()
-rw-r--r-- | daemons/ipa-sam/ipa_sam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemons/ipa-sam/ipa_sam.c b/daemons/ipa-sam/ipa_sam.c index 95add09d..b3c33644 100644 --- a/daemons/ipa-sam/ipa_sam.c +++ b/daemons/ipa-sam/ipa_sam.c @@ -87,7 +87,6 @@ bool sid_check_is_builtin(const struct dom_sid *sid); /* available in libpdb.so bool sid_linearize(char *outbuf, size_t len, const struct dom_sid *sid); /* available in libsmbconf.so */ char *sid_string_talloc(TALLOC_CTX *mem_ctx, const struct dom_sid *sid); /* available in libsmbconf.so */ char *sid_string_dbg(const struct dom_sid *sid); /* available in libsmbconf.so */ -bool trim_char(char *s,char cfront,char cback); /* available in libutil_str.so */ char *escape_ldap_string(TALLOC_CTX *mem_ctx, const char *s); /* available in libsmbconf.so */ bool secrets_store(const char *key, const void *data, size_t size); /* available in libpdb.so */ @@ -3715,7 +3714,7 @@ static NTSTATUS pdb_init_ipasam(struct pdb_methods **pdb_method, if (uri == NULL) { return NT_STATUS_NO_MEMORY; } - trim_char( uri, '\"', '\"' ); + trim_string( uri, "\"", "\"" ); status = ipasam_generate_principals(ldap_state->ipasam_privates); |