mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
improved log message for corrupt zip files
This commit is contained in:
parent
9244105f4b
commit
74bf302126
@ -54,7 +54,7 @@ int extract_opendocument(struct session_data *sdata, struct _state *state, char
|
|||||||
|
|
||||||
z = zip_open(filename, ZIP_CHECKCONS, &errorp);
|
z = zip_open(filename, ZIP_CHECKCONS, &errorp);
|
||||||
if(!z){
|
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;
|
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);
|
z = zip_open(filename, ZIP_CHECKCONS, &errorp);
|
||||||
if(!z){
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user