소스 검색

Create VNC homedir if it doesn't already exist

tags/v1.11.90
Brian P. Hinz 3 년 전
부모
커밋
89f6d5aed0
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8
    3
      java/com/tigervnc/rfb/CSecurityTLS.java

+ 8
- 3
java/com/tigervnc/rfb/CSecurityTLS.java 파일 보기

@@ -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"+

Loading…
취소
저장