summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_sqlite3
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-09 14:15:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:53 -0500
commitc63c28f5bd46e4a03e1cdd12b78934c0b88635a8 (patch)
tree4f64ad1e0f8df3d1898b1de012165812fc6e4cdf /source4/lib/ldb/ldb_sqlite3
parentc96492a9dce25a1881e854ac7861a0b258ee1ae1 (diff)
downloadsamba-c63c28f5bd46e4a03e1cdd12b78934c0b88635a8.tar.gz
samba-c63c28f5bd46e4a03e1cdd12b78934c0b88635a8.tar.bz2
samba-c63c28f5bd46e4a03e1cdd12b78934c0b88635a8.zip
r7437: Make Simo happy.
I still think this URI syntax for a 'protocol' which has no network component is stupid; it should just be sqlite:local_file or sqlite:/full/path/to/file but there is enough precedent to warrant the behavior that Simo wants that it is not worth arguing. (This used to be commit 61dcb462f30a65256e263e87c192ed7f5280c7af)
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3')
-rw-r--r--source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
index 4f774efbae..54f8903231 100644
--- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
+++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
@@ -1130,7 +1130,7 @@ lsqlite3_initialize(struct lsqlite3_private *lsqlite3,
;
/* Skip protocol indicator of url */
- if ((p = strchr(url, ':')) == NULL) {
+ if (strncmp(url, "sqlite://", 9) != 0) {
return SQLITE_MISUSE;
} else {
++p;