jdk/src/solaris/classes/sun/nio/fs/UnixFileSystemProvider.java
changeset 11525 b0263ecbbdf1
parent 9050 26c2c1de1631
child 13246 a54c4f70775c
equal deleted inserted replaced
11524:98514f22fc51 11525:b0263ecbbdf1
   393         if (filter == null)
   393         if (filter == null)
   394             throw new NullPointerException();
   394             throw new NullPointerException();
   395 
   395 
   396         // can't return SecureDirectoryStream on kernels that don't support
   396         // can't return SecureDirectoryStream on kernels that don't support
   397         // openat, etc.
   397         // openat, etc.
   398         if (!supportsAtSysCalls()) {
   398         if (!supportsAtSysCalls() || !supportsNoFollowLinks()) {
   399             try {
   399             try {
   400                 long ptr = opendir(dir);
   400                 long ptr = opendir(dir);
   401                 return new UnixDirectoryStream(dir, ptr, filter);
   401                 return new UnixDirectoryStream(dir, ptr, filter);
   402             } catch (UnixException x) {
   402             } catch (UnixException x) {
   403                 if (x.errno() == ENOTDIR)
   403                 if (x.errno() == ENOTDIR)