git: installer: Fix disk_find() on systems that have both da1 and da10.
Sascha Wildner
swildner at crater.dragonflybsd.org
Wed May 28 23:27:05 PDT 2014
commit a96dd72561007f315dbda98c8e06047f89f9ac50
Author: Sascha Wildner <saw at online.de>
Date: Thu May 29 08:26:47 2014 +0200
installer: Fix disk_find() on systems that have both da1 and da10.
In addition to comparing names (up to the length of the disk which
was found previously), also compare name lengths.
While here, remove the disk_find() check in disk_new(). disk_new()
didn't deal with it returning NULL. But because the list of disks
we offer as targets for installing is taken from sysctl kern.disks'
output, it will not have duplicates (else it would likely be a bug
in the kernel).
Reported-by: BSDUX on IRC
Summary of changes:
usr.sbin/installer/libinstaller/diskutil.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a96dd72561007f315dbda98c8e06047f89f9ac50
--
DragonFly BSD source repository
More information about the Commits
mailing list