On Sunday 08 June 2008 13:00, nextgens at freenetproject.org wrote: > Author: nextgens > Date: 2008-06-08 12:00:22 +0000 (Sun, 08 Jun 2008) > New Revision: 20264 > > Modified: > trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java > Log: > contrib: fix the following tickets: > #892: Onion libraries are using a static path C:\.onionnetworks\lib\win32\ > #1092: Failure if no home directory because onion extracts to home dir > > the fix will be deployed along with next freenet-ext.jar
Any chance of symlink races on *nix? > > Modified: trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java > =================================================================== > --- trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java 2008-06-08 11:39:18 UTC (rev 20263) > +++ trunk/contrib/fec/common/src/com/onionnetworks/util/NativeDeployer.java 2008-06-08 12:00:22 UTC (rev 20264) > @@ -93,9 +93,10 @@ > public synchronized final static String getLocalResourcePath > (ClassLoader cl, String resourcePath) throws IOException { > > - File f = new File(System.getProperty("user.home")+ > - > File.separator+".onionnetworks"+File.separator+ > - resourcePath); > + File f = new File(System.getProperty("java.io.tmpdir")+ > + File.separator+".onionnetworks"+ > + File.separator+System.getProperty("user.name")+ > + File.separator+resourcePath); > File parentF = f.getParentFile(); > if (parentF == null) { > return null; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20080720/d599a50d/attachment.pgp>