cd_size cannot be in bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
multicd (Debian) |
Fix Released
|
Unknown
|
|||
multicd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: multicd
If I specify cd_size = 4707319808 multicd aborts with the following error message:
Can't call method "bcmp" without a package or object reference at /usr/bin/multicd line 1283.
Instrumenting the code around line 1283 reveals that $config{'cd_size'} is an integer, not a Math::BigInt object.
Changing the configuration file to have cd_size= 4596992K seems to work around the problem. Ditto for maxfile_size ("Can't call method "bcmp" without a package or object reference at /usr/bin/multicd line 460.").
I suspect that the author failed to handle the case of a byte count without a multiplier when he converted the code to use Math::BigInt.
(4707319808 bytes is the size of a DVD-R disc, according to http://
vnix$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
vnix$ apt-cache policy multicd
multicd:
Installed: 1.7.3-1
Candidate: 1.7.3-1
Version table:
*** 1.7.3-1 0
500 http://
100 /var/lib/
Related branches
tags: | added: patch |
tags: |
added: patch-forwarded-debian removed: patch |
Changed in multicd (Debian): | |
status: | Unknown → New |
Changed in multicd (Debian): | |
status: | New → Fix Released |
Attached please find a trivial patch which corrects this problem.