diff options
author | wisberg <wisberg> | 2005-10-15 03:29:43 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-10-15 03:29:43 +0000 |
commit | 9f651ae391dea61c4a0ba903e33e8fd5655d98b1 (patch) | |
tree | bf93528d09369fdd79d8d8eda610ba55e0409aeb /util | |
parent | 332a5df39711d17d13ef2c87fdaba023d4869538 (diff) | |
download | aspectj-9f651ae391dea61c4a0ba903e33e8fd5655d98b1.tar.gz aspectj-9f651ae391dea61c4a0ba903e33e8fd5655d98b1.zip |
Forgot to limit scope to full paths
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/ConfigParser.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/org/aspectj/util/ConfigParser.java b/util/src/org/aspectj/util/ConfigParser.java index 81b9127e9..d15e1698b 100644 --- a/util/src/org/aspectj/util/ConfigParser.java +++ b/util/src/org/aspectj/util/ConfigParser.java @@ -217,7 +217,9 @@ public class ConfigParser { private File makeFile(File dir, String name) { name = name.replace('/', File.separatorChar); File ret = new File(name); - if (!ret.exists() && (dir != null) && !ret.isAbsolute()) { + boolean isAbsolute = ret.isAbsolute() + || (ret.exists() && ret.getPath().startsWith(File.separator)); + if (!isAbsolute && (dir != null)) { ret = new File(dir, name); } try { |