improved log message for corrupt zip files

This commit is contained in:
SJ 2015-01-27 09:54:49 +01:00
parent 9244105f4b
commit 74bf302126

View File

@ -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;
}