[BusyBox 0000644]: function set_loop() in libbb/loop.c only loops on even devices.
bugs at busybox.net
bugs at busybox.net
Mon Jan 16 11:07:25 UTC 2006
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=644
======================================================================
Reported By: giuseppe
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 644
Category: Other
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 01-16-2006 03:07 PST
Last Modified: 01-16-2006 03:07 PST
======================================================================
Summary: function set_loop() in libbb/loop.c only loops on
even devices.
Description:
in libbb/loop.c
int set_loop(char **device, const char *file, int offset)
[...]
/* Find a loop device. */
try=*device ? : dev;
for(i=0;rc;i++) {
sprintf(dev, LOOP_FORMAT, i++);
variable ``i'' gets increased two times each loop iteration, so only
/dev/loop0, /dev/loop2.. are accessed.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-16-06 03:07 giuseppe New Issue
01-16-06 03:07 giuseppe Status new => assigned
01-16-06 03:07 giuseppe Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list