8166148: Fix for JDK-8165936 broke solaris builds
authorrriggs
Thu, 15 Sep 2016 16:05:51 -0400
changeset 40979 df846f0570fc
parent 40978 3d4aebec46ee
child 40980 5f1dcd51e963
8166148: Fix for JDK-8165936 broke solaris builds Reviewed-by: naoto
jdk/src/java.base/unix/native/libjava/TimeZone_md.c
--- 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;
     }