diff options
author | Derrell Lipman <derrell@samba.org> | 2005-06-09 18:43:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:54 -0500 |
commit | 5351ae59a0d7043f627fa066879cf7252451fbd9 (patch) | |
tree | 56d6443f7e8024a2c47dcde84945ebdfc44f17e5 /source4/lib | |
parent | 09bdc1b9384ceddc610514a605028f09f8195f1d (diff) | |
download | samba-5351ae59a0d7043f627fa066879cf7252451fbd9.tar.gz samba-5351ae59a0d7043f627fa066879cf7252451fbd9.tar.bz2 samba-5351ae59a0d7043f627fa066879cf7252451fbd9.zip |
r7449: add ctype.h header to dn expand function
(This used to be commit 0e3b872560d82e1a0f7b58fe7d210563d6d29daf)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/common/ldb_explode_dn.c | 1 | ||||
-rw-r--r-- | source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 47 |
2 files changed, 25 insertions, 23 deletions
diff --git a/source4/lib/ldb/common/ldb_explode_dn.c b/source4/lib/ldb/common/ldb_explode_dn.c index e3cd53d047..f015ce81c7 100644 --- a/source4/lib/ldb/common/ldb_explode_dn.c +++ b/source4/lib/ldb/common/ldb_explode_dn.c @@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ctype.h> #include "includes.h" #include "ldb/include/ldb.h" #include "ldb/include/ldb_private.h" diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index c16708672d..e491fba6e0 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -143,10 +143,6 @@ parsetree_to_tablelist(struct ldb_module *module, const struct ldb_parse_tree *t); static int -new_attr(struct ldb_module * module, - char * pAttrName); - -static int msg_to_sql(struct ldb_module * module, const struct ldb_message * msg, long long eid, @@ -157,6 +153,10 @@ new_dn(struct ldb_module * module, char * pDN, long long * pEID); +static int +new_attr(struct ldb_module * module, + char * pAttrName); + /* * Table of operations for the sqlite3 backend @@ -1172,25 +1172,6 @@ parsetree_to_tablelist(struct ldb_module *module, } -static int -new_attr(struct ldb_module * module, - char * pAttrName) -{ - struct lsqlite3_private * lsqlite3 = module->private_data; - - /* NOTE: pAttrName is assumed to already be case-folded here! */ - QUERY_NOROWS(lsqlite3, - FALSE, - "CREATE TABLE ldb_attr_%q " - "(" - " eid INTEGER REFERENCES ldb_entry, " - " attr_value TEXT" - ");", - pAttrName); - - return 0; -} - /* * Issue a series of SQL statements to implement the ADD/MODIFY/DELETE * requests in the ldb_message @@ -1301,6 +1282,7 @@ msg_to_sql(struct ldb_module * module, } + static int new_dn(struct ldb_module * module, char * pDN, @@ -1324,3 +1306,22 @@ new_dn(struct ldb_module * module, } +static int +new_attr(struct ldb_module * module, + char * pAttrName) +{ + struct lsqlite3_private * lsqlite3 = module->private_data; + + /* NOTE: pAttrName is assumed to already be case-folded here! */ + QUERY_NOROWS(lsqlite3, + FALSE, + "CREATE TABLE ldb_attr_%q " + "(" + " eid INTEGER REFERENCES ldb_entry, " + " attr_value TEXT" + ");", + pAttrName); + + return 0; +} + |