AnantLabs / xerial

Automatically exported from code.google.com/p/xerial
0 stars 0 forks source link

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

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/xerial/source/browse/src/main/java/org/sqlite/SQLiteJD
BCLoader.java?repo=sqlite#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).

Please provide any additional information below.

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