[BusyBox 0000644]: function set_loop() in libbb/loop.c only loops on even devices.
bugs at busybox.net
bugs at busybox.net
Sun Jan 22 23:17:45 UTC 2006
The following issue has been CLOSED
======================================================================
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: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 01-16-2006 03:07 PST
Last Modified: 01-22-2006 15:17 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.
======================================================================
----------------------------------------------------------------------
landley - 01-22-06 15:17
----------------------------------------------------------------------
Um, yeah.
svn 13496
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
01-22-06 15:17 landley Status assigned => closed
01-22-06 15:17 landley Note Added: 0000976
======================================================================
More information about the busybox-cvs
mailing list