3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

Take the directory of the wallets absolute path name, to avoid creating temporary wallets in the system default directory. This does not play well with NFS.

This commit is contained in:
Mike Hearn 2012-05-31 12:42:02 +02:00
parent fa746716ce
commit db67db5943

View File

@ -187,7 +187,7 @@ public class Wallet implements Serializable {
FileOutputStream stream = null;
File temp = null;
try {
File directory = f.getParentFile();
File directory = f.getAbsoluteFile().getParentFile();
temp = File.createTempFile("wallet", null, directory);
stream = new FileOutputStream(temp);
saveToFileStream(stream);