git: fdisk(8): close boot_fd on failure
Sascha Wildner
swildner at crater.dragonflybsd.org
Sat Aug 21 06:34:41 PDT 2021
commit b59f5f3d7b5ef6876727f55faf4a81f1478700e6
Author: Alexander Kuleshov <kuleshovmail at gmail.com>
Date: Mon Dec 28 18:22:50 2015 +0600
fdisk(8): close boot_fd on failure
The init_boot() function opens/reads the /boot/mbr file or
file which is given with the -b option. There are couple
failure cases can be occured there. So we need to close
file description of /boot/mbr.
Summary of changes:
sbin/fdisk/fdisk.c | 9 +++++++++
1 file changed, 9 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b59f5f3d7b5ef6876727f55faf4a81f1478700e6
--
DragonFly BSD source repository
More information about the Commits
mailing list