[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] bug#1110: mount -o loop bug
From: zhaoway <zw () debian ! org>
Date: 2001-02-28 17:10:42
[Download RAW message or body]
Package: busybox
Version: 0.49
`mount -o loop' cannot work for me. After consulting orig mount src, I
found following patch helped. Thanks!
--
ÕÔε <http://www.zhaoway.com/>
--- utility.c.~1~ Sat Jan 27 14:26:26 2001
+++ utility.c Thu Mar 1 00:57:28 2001
@@ -1472,7 +1472,7 @@
sprintf(dev, "/dev/loop%d", i);
if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) {
if ((fd = open(dev, O_RDONLY)) >= 0) {
- if (ioctl(fd, LOOP_GET_STATUS, &loopinfo) == -1) {
+ if (ioctl(fd, LOOP_GET_STATUS, &loopinfo) != 0) {
if (errno == ENXIO) { /* probably free */
close(fd);
return strdup(dev);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic