jdk/src/java.base/unix/native/libjava/TimeZone_md.c
changeset 40979 df846f0570fc
parent 40974 42921b893642
--- a/jdk/src/java.base/unix/native/libjava/TimeZone_md.c	Thu Sep 15 14:59:20 2016 -0400
+++ b/jdk/src/java.base/unix/native/libjava/TimeZone_md.c	Thu Sep 15 16:05:51 2016 -0400
@@ -136,13 +136,7 @@
     }
 
     name_max = pathconf(dir, _PC_NAME_MAX);
-    // If pathconf did not work, fall back to NAME_MAX.
-    if (name_max < 0) {
-        name_max = NAME_MAX;
-    }
-    // Some older System V systems have a very small NAME_MAX size of 14; as
-    // there is no way to tell readdir_r the output buffer size, lets enforce
-    // a mimimum buffer size.
+    // If pathconf did not work, fall back to a mimimum buffer size.
     if (name_max < 1024) {
         name_max = 1024;
     }