Changeset 9c0aa0c2


Ignore:
Timestamp:
Mar 21, 2015 12:19:03 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a337185
Parents:
b2e908f
Message:

randomize i2psnark temp dir name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/I2PSnarkUtil.java

    rb2e908f r9c0aa0c2  
    106106        // so it must be available even if not connected to I2CP.
    107107        // so much for multiple instances
    108         _tmpDir = new SecureDirectory(ctx.getTempDir(), baseName);
    109         FileUtil.rmdir(_tmpDir, false);
     108        _tmpDir = new SecureDirectory(ctx.getTempDir(), baseName + '-' + ctx.random().nextInt());
     109        //FileUtil.rmdir(_tmpDir, false);
    110110        _tmpDir.mkdirs();
    111111    }
Note: See TracChangeset for help on using the changeset viewer.