summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 925cd69..6722b55 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -18,6 +18,10 @@
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <db.h>
#include <stdlib.h>
#include <assert.h>
@@ -157,7 +161,7 @@ int md_cache_get(struct syrep_md_cache *c, const char *path, uint8_t digest[16])
struct stat st;
if ((fd = open(path, O_RDONLY)) < 0) {
- fprintf(stderr, "open(%s): %s\n", path, strerror(errno));
+ fprintf(stderr, "open(\"%s\"): %s\n", path, strerror(errno));
goto finish;
}