[MacPorts] #50427: sqlite3 @3.10.2_0 Cannot open database via symlink
MacPorts
noreply at macports.org
Sun Jan 24 05:13:23 PST 2016
#50427: sqlite3 @3.10.2_0 Cannot open database via symlink
----------------------+--------------------------------
Reporter: hanche@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: sqlite3
----------------------+--------------------------------
The summary says it all. To reproduce:
{{{
; mkdir x y
; sqlite3 x/foo.sqlite 'create table foo(x);'
; sqlite3 x/foo.sqlite 'select count(*) from foo;'
0
; ln -s ../x/foo.sqlite y
; cmp x/foo.sqlite y/foo.sqlite
; sqlite3 y/foo.sqlite 'select count(*) from foo;'
Error: unable to open database "y/foo.sqlite": unable to open database
file
}}}
However, this works:
{{{
; cd y
; sqlite3 foo.sqlite 'select count(*) from foo;'
0
}}}
It appears from http://sqlite.org/changes.html that some changes have
recently been introduced related to symlinked database files. Presumably,
that must have been tested upstream, so it's more likely an OS X problem,
I think. (I am on OS X 10.11.2.)
--
Ticket URL: <https://trac.macports.org/ticket/50427>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list