public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* fix symbolic link problem in  gnu/testlet/java/security/AccessController/contexts.java
@ 2008-06-09 13:54 Christian Thalinger
  0 siblings, 0 replies; only message in thread
From: Christian Thalinger @ 2008-06-09 13:54 UTC (permalink / raw)
  To: mauve-patches ml

Hi!

This fixes a small bug in
gnu/testlet/java/security/AccessController/contexts.java when the
pathname contains a symbolic link.  Commited as follows.

- twisti

---

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.2111
diff -u -3 -p -r1.2111 ChangeLog
--- ChangeLog	21 May 2008 15:10:46 -0000	1.2111
+++ ChangeLog	9 Jun 2008 13:51:47 -0000
@@ -1,3 +1,9 @@
+2008-06-09  Christian Thalinger  <twisti@complang.tuwien.ac.at>
+
+	* gnu/testlet/java/security/AccessController/contexts.java (test):
+	Use getCanonicalPath() to fix a problem when the path contains a
+	symbolic link.
+
 2008-05-21  Christian Thalinger  <twisti@complang.tuwien.ac.at>
 
 	* gnu/testlet/java/util/EnumSet/ComplementOf.java: Added
Index: gnu/testlet/java/security/AccessController/contexts.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/security/AccessController/contexts.java,v
retrieving revision 1.3
diff -u -3 -p -r1.3 contexts.java
--- gnu/testlet/java/security/AccessController/contexts.java	6 Feb 2007 16:46:20 -0000	1.3
+++ gnu/testlet/java/security/AccessController/contexts.java	9 Jun 2008 13:51:47 -0000
@@ -66,7 +66,8 @@ public class contexts implements Testlet
       harness.checkPoint("setup");
 
       // Make jarfiles containing this class and its dependencies
-      String base = new File(harness.getTempDirectory(), "ac").getPath();
+      String base =
+          new File(harness.getTempDirectory(), "ac").getCanonicalPath();
 
       jars[0] = new File(base + "1.jar");
       JarOutputStream jos = new JarOutputStream(new FileOutputStream(jars[0]));


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-09 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-09 13:54 fix symbolic link problem in gnu/testlet/java/security/AccessController/contexts.java Christian Thalinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).