Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/stand/netboot Do not crash, but use "netb...



details:   https://anonhg.NetBSD.org/src/rev/ec64d3043fda
branches:  trunk
changeset: 760677:ec64d3043fda
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Jan 10 20:14:52 2011 +0000

description:
Do not crash, but use "netbsd" as default file name when missing.

diffstat:

 sys/arch/sandpoint/stand/netboot/devopen.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 14511d637fb4 -r ec64d3043fda sys/arch/sandpoint/stand/netboot/devopen.c
--- a/sys/arch/sandpoint/stand/netboot/devopen.c        Mon Jan 10 20:13:47 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/devopen.c        Mon Jan 10 20:14:52 2011 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index