r7437: Make Simo happy.
authorDerrell Lipman <derrell@samba.org>
Thu, 9 Jun 2005 14:15:09 +0000 (14:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:53 +0000 (13:17 -0500)
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)

source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c

index 4f774efbaea984f552937410d7e6fc205cee09c2..54f8903231a68a5f498f757b6c67da4561329a4c 100644 (file)
@@ -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;