Module Name: src
Committed By: phx
Date: Mon Jan 10 20:14:52 UTC 2011
Modified Files:
src/sys/arch/sandpoint/stand/netboot: devopen.c
Log Message:
Do not crash, but use "netbsd" as default file name when missing.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sandpoint/stand/netboot/devopen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/stand/netboot/devopen.c
diff -u src/sys/arch/sandpoint/stand/netboot/devopen.c:1.11 src/sys/arch/sandpoint/stand/netboot/devopen.c:1.12
--- src/sys/arch/sandpoint/stand/netboot/devopen.c:1.11 Sat Jun 26 21:45:49 2010
+++ src/sys/arch/sandpoint/stand/netboot/devopen.c Mon Jan 10 20:14:52 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.11 2010/06/26 21:45:49 phx Exp $ */
+/* $NetBSD: devopen.c,v 1.12 2011/01/10 20:14:52 phx Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -83,6 +83,8 @@
if (name[0] == 'w' && name[1] == 'd') {
parseunit(&name[2], &unit, &part, file);
of->f_dev = &devdsk;
+ if (*file == NULL || **file <= ' ')
+ *file = "netbsd";
if ((error = dsk_open(of, unit, part, *file)) != 0)
return error;
file_system[0] = *dsk_fsops(of);