diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-08 20:45:47 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-08 20:45:47 +0200 |
commit | 467682870f932a5c2423983604d66c85a4464332 (patch) | |
tree | 6077c4d921fa099e163b00e525b1410d0540c63b | |
parent | a0eb77ac3114dd0eab6b0e4e547f49190214813c (diff) |
[vfz_zip] disabled archive consistency checks
-rw-r--r-- | plugins/vfs_zip/vfs_zip.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/vfs_zip/vfs_zip.c b/plugins/vfs_zip/vfs_zip.c index a70b96d8..eddd1cd0 100644 --- a/plugins/vfs_zip/vfs_zip.c +++ b/plugins/vfs_zip/vfs_zip.c @@ -23,8 +23,8 @@ #include <assert.h> #include "../../deadbeef.h" -#define trace(...) { fprintf(stderr, __VA_ARGS__); } -//#define trace(fmt,...) +//#define trace(...) { fprintf(stderr, __VA_ARGS__); } +#define trace(fmt,...) #define min(x,y) ((x)<(y)?(x):(y)) @@ -182,8 +182,11 @@ vfs_zip_getlength (DB_FILE *f) { int vfs_zip_scandir (const char *dir, struct dirent ***namelist, int (*selector) (const struct dirent *), int (*cmp) (const struct dirent **, const struct dirent **)) { - struct zip *z = zip_open (dir, ZIP_CHECKCONS, NULL); + trace ("vfs_zip_scandir: %s\n", dir); + int error; + struct zip *z = zip_open (dir, 0, &error); if (!z) { + trace ("zip_open failed (code: %d)\n", error); return -1; } |