jdk/src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
    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 {