[BusyBox-cvs] busybox/libbb loop.c,1.4,1.5
Erik Andersen
andersen at busybox.net
Fri May 2 16:25:05 UTC 2003
Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv5752/libbb
Modified Files:
loop.c
Log Message:
Patch from Dmitry V. Levin to fix a fd leak
Index: loop.c
===================================================================
RCS file: /var/cvs/busybox/libbb/loop.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- loop.c 19 Mar 2003 09:12:07 -0000 1.4
+++ loop.c 2 May 2003 16:25:01 -0000 1.5
@@ -37,6 +37,7 @@
return (FALSE);
}
if (ioctl(fd, LOOP_CLR_FD, 0) < 0) {
+ close(fd);
bb_perror_msg("ioctl: LOOP_CLR_FD");
return (FALSE);
}
More information about the busybox-cvs
mailing list