Open GoogleCodeExporter opened 8 years ago
In addition there was a bug in class AgentJarCreator.java:
...
// step #2: unzip the jar we're using right now to modify
String tmpDir = null;
if ( testing ) {
tmpDir = System.getProperty("java.io.tmpdir") + RandomUtil.randomString(10);
} else {
tmpDir = new File(file).getParent() + File.separator + "working";
}
...
that must be:
// step #2: unzip the jar we're using right now to modify
String tmpDir = null;
if ( testing ) {
tmpDir = System.getProperty("java.io.tmpdir") + File.separator + RandomUtil.randomString(10);
} else {
tmpDir = new File(file).getParent() + File.separator + "working";
}
==================================
without the additional file seperator, on linux the result would be thatjava
snoop tries to save the file on the root directory and that is not allowed for
not superusers
Original comment by mirco.ri...@email.de
on 2 Mar 2011 at 11:54
Original comment by arshan.d...@gmail.com
on 17 Mar 2011 at 2:18
Original issue reported on code.google.com by
mirco.ri...@email.de
on 2 Mar 2011 at 11:43