--- trunk/mkinitrd-magellan/klibc/usr/utils/losetup.c 2011/05/27 14:42:36 1296 +++ trunk/mkinitrd-magellan/klibc/usr/utils/losetup.c 2011/05/27 15:12:11 1297 @@ -17,6 +17,7 @@ #include #include #include +#include #include #include "loop.h" @@ -339,6 +340,7 @@ } if (ioctl (fd, LOOP_CLR_FD, 0) < 0) { perror ("ioctl: LOOP_CLR_FD"); + close (fd); return 1; } close (fd); @@ -348,9 +350,6 @@ } -#include -#include - int verbose = 0; char *progname;