From e3909014e44cf934de7312022b5410213b4c5cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 2 Jun 2007 00:47:21 +0000 Subject: [PATCH] If there are no querystat file, whine. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20783 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/cert.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hx509/cert.c b/lib/hx509/cert.c index e1208fb2d..6077c4308 100644 --- a/lib/hx509/cert.c +++ b/lib/hx509/cert.c @@ -2240,8 +2240,11 @@ hx509_query_unparse_stats(hx509_context context, int printtype, FILE *out) if (context->querystat == NULL) return; f = fopen(context->querystat, "r"); - if (f == NULL) + if (f == NULL) { + fprintf(out, "No statistic file %s: %s.\n", + context->querystat, strerror(errno)); return; + } memset(stats, 0, sizeof(stats)); while (fscanf(f, "%d %d\n", &type, &mask) == 2) {