Package: hoz Version: 1.65-1 Severity: important Tags: patch Hoz miscalculates partsize passed to cli via '-c' arg.
$hoz -c5k myfile (should split the file into 5KB parts) -rw-r--r-- 1 cgalisteo cgalisteo 5,0M ago 19 12:23 myfile.1 -rw-r--r-- 1 cgalisteo cgalisteo 5,0M ago 19 12:23 myfile.2 -rw-r--r-- 1 cgalisteo cgalisteo 5,0M ago 19 12:23 myfile.3 [...] $hoz -c15m myfile (should split the file into 15MB parts) -rw-r--r-- 1 cgalisteo cgalisteo 4096 ago 19 12:38 myfile.1 -rw-r--r-- 1 cgalisteo cgalisteo 4096 ago 19 12:38 myfile.2 -rw-r--r-- 1 cgalisteo cgalisteo 4096 ago 19 12:38 myfile.3 [...] The reason seems to be an error in hozcli.c:136, where partsize is multiplied by size_multiplier *again*, even though atolmp already does it 5 lines above. Patch attached :) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages hoz depends on: ii libc6 2.7-13 GNU C Library: Shared libraries -- --- Carlos Galisteo <cgalisteo AT k-rolus.net> PGP_key::http://k-rolus.net/~cgalisteo/cgalisteo.gpg Key_Fingerprint::F888 6FBA 9145 B5A2 C187 66D6 5B8C 027A 69AD BE65 ---
--- hozcli.c.orig 2008-08-19 12:52:03.000000000 +0200 +++ hozcli.c 2008-08-19 12:52:08.000000000 +0200 @@ -133,7 +133,7 @@ int main(int argc, char **argv) hoz_echo(409, cval); return 409; } - partsize *= size_multiplier; + //partsize *= size_multiplier; } j = 0;