walterDurin / sqlite-jdbc

Automatically exported from code.google.com/p/sqlite-jdbc
Apache License 2.0
0 stars 0 forks source link

Shared library in /tmp on multi-user system causes IOException #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. As one user, touch /tmp/sqlite-3.7.2-libsqlitejdbc.so (replace with the 
correct version number for the library you're using, chmod so it's not writable 
by other users).
2. As another user, attempt to run a program using the library.

What is the expected output? What do you see instead?
The program should run as expected. Instead, it throws an IOException when it 
fails to delete the file 
(http://code.google.com/p/sqlite-jdbc/source/browse/src/main/java/org/sqlite/SQL
iteJDBCLoader.java#138).

What version of the product are you using? On what operating system?
This was tested on a 64-bit Debian machine with version 3.7.2 of the library, 
but the results should be the same on any OS (and the relevant code hasn't 
changed at all between versions).

Please provide any additional information below.
I accidentally filed an identical issue at 
http://code.google.com/p/xerial/issues/detail?id=101 because I didn't read 
http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC properly. Sorry!

Original issue reported on code.google.com by smartys on 15 Dec 2011 at 5:48

GoogleCodeExporter commented 9 years ago
any workaround?
I am facing the same issue.

Original comment by minhaz.z...@gmail.com on 23 Jan 2013 at 5:20