SharedLibHelper.java (findHelper): Delete copied file on exit.
* gnu/gcj/runtime/SharedLibHelper.java (findHelper): Delete copied file on exit. From-SVN: r95116
This commit is contained in:
parent
d933abbe01
commit
1b3b050918
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-02-16 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gnu/gcj/runtime/SharedLibHelper.java (findHelper): Delete
|
||||
copied file on exit.
|
||||
|
||||
2005-02-15 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* java/awt/BasicStroke.java (hashCode): Check for null dash.
|
||||
|
@ -2051,9 +2056,6 @@
|
|||
gnu/xml/xpath/Predicate.java: Use constants relative to
|
||||
declaring class or interface.
|
||||
|
||||
2005-02-16 Andrew Haley <aph@redhat.com>
|
||||
|
||||
|
||||
2005-02-08 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* javax/security/auth/Subject.java (doAsPrivileged): If acc is
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2001, 2003, 2004 Free Software Foundation
|
||||
/* Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -67,13 +67,15 @@ public class SharedLibHelper
|
|||
}
|
||||
|
||||
public static SharedLibHelper findHelper (ClassLoader loader, String libname,
|
||||
CodeSource source, boolean tryParents)
|
||||
CodeSource source,
|
||||
boolean tryParents)
|
||||
{
|
||||
return findHelper (loader, libname, source, null, tryParents);
|
||||
}
|
||||
|
||||
public static SharedLibHelper findHelper (ClassLoader loader, String libname,
|
||||
CodeSource source, ProtectionDomain domain,
|
||||
CodeSource source,
|
||||
ProtectionDomain domain,
|
||||
boolean tryParents)
|
||||
{
|
||||
synchronized (map)
|
||||
|
@ -118,6 +120,7 @@ public class SharedLibHelper
|
|||
".so", new File ("/tmp"));
|
||||
File src = new File(libname);
|
||||
copyFile (src, copy);
|
||||
copy.deleteOnExit();
|
||||
libname = copy.getPath();
|
||||
}
|
||||
catch (IOException e)
|
||||
|
|
Loading…
Add table
Reference in a new issue