mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r7343: handle url like ldb_tdb does
(This used to be commit d36fde5c0c
)
This commit is contained in:
parent
f9716b51cd
commit
ca7baa3c9f
@ -903,11 +903,16 @@ lsqlite3_initialize(struct lsqlite3_private *lsqlite3,
|
||||
;
|
||||
|
||||
/* Skip protocol indicator of url */
|
||||
if ((p = strchr(url, ':')) == NULL) {
|
||||
return SQLITE_MISUSE;
|
||||
} else {
|
||||
++p;
|
||||
}
|
||||
if (strchr(url, ':')) {
|
||||
if (strncmp(url, "sqlite://", 9) != 0) {
|
||||
errno = EINVAL;
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
p = url + 9;
|
||||
} else {
|
||||
p = url;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* See if we'll be creating a new database, or opening an existing one
|
||||
|
Loading…
Reference in New Issue
Block a user