Pārlūkot izejas kodu

Create VNC homedir if it doesn't already exist

tags/v1.11.90
Brian P. Hinz pirms 3 gadiem
vecāks
revīzija
89f6d5aed0
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. 8
    3
      java/com/tigervnc/rfb/CSecurityTLS.java

+ 8
- 3
java/com/tigervnc/rfb/CSecurityTLS.java Parādīt failu

@@ -279,9 +279,14 @@ public class CSecurityTLS extends CSecurity {
throw new AuthFailureException("server certificate has expired");
}
File vncDir = new File(FileUtils.getVncHomeDir());
if (!vncDir.exists())
throw new AuthFailureException("Could not obtain VNC home directory "+
"path for known hosts storage");
if (!vncDir.exists()) {
try {
vncDir.mkdir();
} catch(SecurityException e) {
throw new AuthFailureException("Could not obtain VNC home directory "+
"path for known hosts storage");
}
}
File dbPath = new File(vncDir, "x509_known_hosts");
String info =
" Subject: "+cert.getSubjectX500Principal().getName()+"\n"+

Notiek ielāde…
Atcelt
Saglabāt