- catch FileNotFoundException (bnc#623365)

OBS-URL: https://build.opensuse.org/package/show/Base:System/ca-certificates?expand=0&rev=18
This commit is contained in:
Ludwig Nussel 2010-09-27 14:58:22 +00:00 committed by Git OBS Bridge
parent 3432b108f1
commit b6f9b628c7
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 27 14:58:03 UTC 2010 - lnussel@suse.de
- catch FileNotFoundException (bnc#623365)
-------------------------------------------------------------------
Fri May 21 12:46:55 UTC 2010 - mvyskocil@suse.cz

View File

@ -51,7 +51,6 @@ public class keystore
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.FileNotFoundException,
java.io.IOException
{
char[] password = null;
@ -149,7 +148,13 @@ public class keystore
int removed = 0;
for (int i = 0; i < certs.length; ++i) {
BufferedInputStream f = new BufferedInputStream(new FileInputStream(cadirname+"/"+certs[i]));
BufferedInputStream f;
try {
f = new BufferedInputStream(new FileInputStream(cadirname+"/"+certs[i]));
} catch (java.io.FileNotFoundException ex) {
System.err.println("skipping " + certs[i] + ": file not found");
continue;
}
String marker = "-----BEGIN CERTIFICATE-----";
boolean found = false;