Module Name: src Committed By: jmcneill Date: Thu Oct 1 10:41:03 UTC 2009
Modified Files: src/distrib/utils/sysinst: disks.c Log Message: In get_descr(), initialize dd_descr to an empty string before probing ATA and SCSI identification. Fixes issues with xbd and raid. To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/distrib/utils/sysinst/disks.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/sysinst/disks.c diff -u src/distrib/utils/sysinst/disks.c:1.106 src/distrib/utils/sysinst/disks.c:1.107 --- src/distrib/utils/sysinst/disks.c:1.106 Sun Aug 23 18:43:33 2009 +++ src/distrib/utils/sysinst/disks.c Thu Oct 1 10:41:03 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: disks.c,v 1.106 2009/08/23 18:43:33 jmcneill Exp $ */ +/* $NetBSD: disks.c,v 1.107 2009/10/01 10:41:03 jmcneill Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -288,6 +288,8 @@ if (fd < 0) goto done; + dd->dd_descr[0] = '\0'; + /* try ATA */ if (get_descr_ata(dd, fd)) goto done;