diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index 8c3ad2ce0..19bbf3674 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -132,7 +132,7 @@ extern char *find_unused_loop_device(void) | |||
132 | struct stat statbuf; | 132 | struct stat statbuf; |
133 | struct loop_info loopinfo; | 133 | struct loop_info loopinfo; |
134 | 134 | ||
135 | for (i = 0; i <= 7; i++) { | 135 | for (i = 0; i <= CONFIG_FEATURE_MOUNT_LOOP_MAX; i++) { |
136 | sprintf(dev, LOOP_FORMAT, i); | 136 | sprintf(dev, LOOP_FORMAT, i); |
137 | if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) { | 137 | if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) { |
138 | if ((fd = open(dev, O_RDONLY)) >= 0) { | 138 | if ((fd = open(dev, O_RDONLY)) >= 0) { |