1
0
forked from pool/mtools
mtools/mtools-4.0.12-file-close.diff

13 lines
344 B
Diff

Index: mformat.c
===================================================================
--- mformat.c.orig
+++ mformat.c
@@ -1163,6 +1163,7 @@ void mformat(int argc, char **argv, int
exit(1);
}
keepBoot = 1;
+ close(fd);
}
if(!keepBoot && !(used_dev.use_2m & 0x7f)) {
memset(boot.characters, '\0', Fs.sector_size);