From 74bf3021267aba863fe01289aa97b4e83c4301f3 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 27 Jan 2015 09:54:49 +0100 Subject: [PATCH] improved log message for corrupt zip files --- src/extract.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extract.c b/src/extract.c index fc37ab68..b7cfc959 100644 --- a/src/extract.c +++ b/src/extract.c @@ -54,7 +54,7 @@ int extract_opendocument(struct session_data *sdata, struct _state *state, char z = zip_open(filename, ZIP_CHECKCONS, &errorp); if(!z){ - syslog(LOG_INFO, "error: invalid zip file=%s, error code=%d", filename, errorp); + syslog(LOG_INFO, "error: corrupt zip file=%s, error code=%d", filename, errorp); return 1; } @@ -105,7 +105,7 @@ int unzip_file(struct session_data *sdata, struct _state *state, char *filename, z = zip_open(filename, ZIP_CHECKCONS, &errorp); if(!z){ - syslog(LOG_INFO, "error: invalid zip file=%s, error code=%d", filename, errorp); + syslog(LOG_INFO, "error: corrupt zip file=%s, error code=%d", filename, errorp); return 1; }