src/java.security.jgss/share/classes/sun/security/krb5/Config.java
changeset 48672 77baeab90732
parent 48651 67abfee27e69
child 51398 3c389a284345
--- a/src/java.security.jgss/share/classes/sun/security/krb5/Config.java	Thu Jan 25 13:40:36 2018 -0800
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/Config.java	Fri Jan 26 09:37:10 2018 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -578,7 +578,8 @@
                             if (Files.isDirectory(p)) continue;
                             String name = p.getFileName().toString();
                             if (name.matches("[a-zA-Z0-9_-]+") ||
-                                    name.endsWith(".conf")) {
+                                    (!name.startsWith(".") &&
+                                            name.endsWith(".conf"))) {
                                 // if dir is absolute, so is p
                                 readConfigFileLines(p, content, dups);
                             }