Received: (at submit) by bugs.debian.org; 13 Mar 2000 19:09:13 +0000 Received: (qmail 8519 invoked from network); 13 Mar 2000 19:09:09 -0000 Received: from cibalia.gkvk.hr (mail@161.53.211.3) by master.debian.org with SMTP; 13 Mar 2000 19:09:09 -0000 Received: from joy by cibalia.gkvk.hr with local (Exim 2.05 #1 (Debian)) id 12UaPo-0006NB-00; Mon, 13 Mar 2000 20:22:08 +0100 Date: Mon, 13 Mar 2000 20:22:08 +0100 From: Josip Rodin To: submit@bugs.debian.org Subject: zlib-bin: minizip has several issues Message-ID: <20000313202208.A24407@cibalia.gkvk.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0pre2i Package: zlib-bin Hi, When I try to compress a directory called "bla bla bla" with minizip, it dies with this error message: % minizip bla.zip bla\ bla\ bla/ creating bla.zip error in reading bla bla bla/ The strace shows the reason: open("bla bla bla/", O_RDONLY) = 5 read(5, 0x804b0f0, 16384) = -1 EISDIR (Is a directory) write(1, "error in reading bla bla bla/\n", 30) = 30 Also, the return value is still 0... it should be something >1, IMHO. Second problem: the following gives segmentation fault, dumps core and creates an invalid (empty) zip file: % minizip Adidas III.zip Adidas III/\* creating Adidas.zip error in opening III.zip for reading zsh: segmentation fault (core dumped) minizip Adidas III.zip Adidas III/\* NARF :) strace: open("III.zip", O_RDONLY) = -1 ENOENT (No such file or directory) write(1, "error in opening III.zip for rea"..., 37) = 37 --- SIGSEGV (Segmentation fault) --- ltrace: ftell(0x0804f0f8, 0, 0x08049e4d, 34, 0xbffff79c) = 0 malloc(53) = 0x08053268 fwrite("PK\003\004\214\366EOF\277\330\225\004\b\370\360\004\bPK\003\004\004", 4, 1, 0x0804f0f8) = 1 fwrite("\024", 2, 1, 0x0804f0f8) = 1 fwrite("", 2, 1, 0x0804f0f8) = 1 fwrite("\b", 2, 1, 0x0804f0f8) = 1 fwrite("", 4, 1, 0x0804f0f8) = 1 fwrite("", 4, 1, 0x0804f0f8) = 1 fwrite("", 4, 1, 0x0804f0f8) = 1 fwrite("", 4, 1, 0x0804f0f8) = 1 fwrite("\007", 2, 1, 0x0804f0f8) = 1 fwrite("", 2, 1, 0x0804f0f8) = 1 fwrite("III.zip", 7, 1, 0x0804f0f8) = 1 deflateInit2_(0x0804f1c0, -1, 8, -15, 9) = 0 fopen("III.zip", "rb") = 0 printf("error in opening %s for reading\n", "III.zip") = 37 fclose(0 --- SIGSEGV (Segmentation fault) --- gdb backtrace: #0 0x4006e808 in fclose () from /lib/libc.so.6 #1 0x8048ef9 in strcpy () #2 0x4003f7a2 in __libc_start_main () from /lib/libc.so.6 I hope this was useful... Furthermore, there is no manual page for this program nor does it give any kind of help when given options like "-h", "-help" or "--help", so I couldn't find out e.g. what is the "-o" option for. -- enJoy -*/\*- don't even try to pronounce my first name