projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e927743
)
Close bug 644: loop incrementing twice, skipping ever other device.
author
Rob Landley
<rob@landley.net>
Sun, 22 Jan 2006 23:17:18 +0000
(23:17 -0000)
committer
Rob Landley
<rob@landley.net>
Sun, 22 Jan 2006 23:17:18 +0000
(23:17 -0000)
libbb/loop.c
patch
|
blob
|
history
diff --git
a/libbb/loop.c
b/libbb/loop.c
index 85aa372366cd95455aa59d89bc4eb669ee3cf825..6c3144a77b988b9c609df38bfdebc3886ecaa282 100644
(file)
--- a/
libbb/loop.c
+++ b/
libbb/loop.c
@@
-98,7
+98,7
@@
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
++
);
+ sprintf(dev, LOOP_FORMAT, i);
/* Ran out of block devices, return failure. */
if(stat(try, &statbuf) || !S_ISBLK(statbuf.st_mode)) {
rc=ENOENT;