Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst In get_descr(), initialize dd_descr to...
details: https://anonhg.NetBSD.org/src/rev/13670c6a3899
branches: trunk
changeset: 747759:13670c6a3899
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Oct 01 10:41:03 2009 +0000
description:
In get_descr(), initialize dd_descr to an empty string before probing
ATA and SCSI identification. Fixes issues with xbd and raid.
diffstat:
distrib/utils/sysinst/disks.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 45b55b9e9802 -r 13670c6a3899 distrib/utils/sysinst/disks.c
--- a/distrib/utils/sysinst/disks.c Thu Oct 01 10:01:14 2009 +0000
+++ b/distrib/utils/sysinst/disks.c Thu Oct 01 10:41:03 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index