equal
deleted
inserted
replaced
55 |
55 |
56 // if process-wide chdir is allowed or default directory is not the |
56 // if process-wide chdir is allowed or default directory is not the |
57 // process working directory then paths must be resolved against the |
57 // process working directory then paths must be resolved against the |
58 // default directory. |
58 // default directory. |
59 String propValue = GetPropertyAction |
59 String propValue = GetPropertyAction |
60 .getProperty("sun.nio.fs.chdirAllowed", "false"); |
60 .privilegedGetProperty("sun.nio.fs.chdirAllowed", "false"); |
61 boolean chdirAllowed = (propValue.length() == 0) ? |
61 boolean chdirAllowed = (propValue.length() == 0) ? |
62 true : Boolean.valueOf(propValue); |
62 true : Boolean.valueOf(propValue); |
63 if (chdirAllowed) { |
63 if (chdirAllowed) { |
64 this.needToResolveAgainstDefaultDirectory = true; |
64 this.needToResolveAgainstDefaultDirectory = true; |
65 } else { |
65 } else { |