1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

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 61dcb462f3)
This commit is contained in:
Derrell Lipman 2005-06-09 14:15:09 +00:00 committed by Gerald (Jerry) Carter
parent c96492a9dc
commit c63c28f5bd

View 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;