Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/stand/installboot Don't bail out when /netbsd...



details:   https://anonhg.NetBSD.org/src/rev/4f6219fb6ec0
branches:  trunk
changeset: 525548:4f6219fb6ec0
user:      leo <leo%NetBSD.org@localhost>
date:      Fri Apr 12 22:11:33 2002 +0000

description:
Don't bail out when /netbsd is not present. We don't really need it
anyway.

diffstat:

 sys/arch/atari/stand/installboot/installboot.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r e413113ff515 -r 4f6219fb6ec0 sys/arch/atari/stand/installboot/installboot.c
--- a/sys/arch/atari/stand/installboot/installboot.c    Fri Apr 12 22:10:21 2002 +0000
+++ b/sys/arch/atari/stand/installboot/installboot.c    Fri Apr 12 22:11:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.12 2001/10/14 19:45:53 leo Exp $     */
+/*     $NetBSD: installboot.c,v 1.13 2002/04/12 22:11:33 leo Exp $     */
 
 /*
  * Copyright (c) 1995 Waldi Ravens
@@ -173,6 +173,13 @@
        kvm_t           *kd_kern;
        char            errbuf[_POSIX2_LINE_MAX];
        u_short         kvers;
+       struct stat     sb;
+
+       if (stat(_PATH_UNIX, &sb) < 0) {
+               warnx("Cannot stat %s, no bootversion check done\n",
+                                                       _PATH_UNIX);
+               return;
+       }
 
        kd_kern = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf);
        if (kd_kern == NULL)



Home | Main Index | Thread Index | Old Index