Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst PR 50342: if there is no current partition ...
details: https://anonhg.NetBSD.org/src/rev/021bbc7589e8
branches: trunk
changeset: 341097:021bbc7589e8
user: martin <martin%NetBSD.org@localhost>
date: Sun Oct 18 09:21:55 2015 +0000
description:
PR 50342: if there is no current partition manage, assume we are running
from an already installed system.
diffstat:
usr.sbin/sysinst/target.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 112c718b711c -r 021bbc7589e8 usr.sbin/sysinst/target.c
--- a/usr.sbin/sysinst/target.c Sun Oct 18 02:28:07 2015 +0000
+++ b/usr.sbin/sysinst/target.c Sun Oct 18 09:21:55 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: target.c,v 1.2 2014/08/03 16:09:38 martin Exp $ */
+/* $NetBSD: target.c,v 1.3 2015/10/18 09:21:55 martin Exp $ */
/*
* Copyright 1997 Jonathan Stone
@@ -71,7 +71,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: target.c,v 1.2 2014/08/03 16:09:38 martin Exp $");
+__RCSID("$NetBSD: target.c,v 1.3 2015/10/18 09:21:55 martin Exp $");
#endif
/*
@@ -153,6 +153,9 @@
target_already_root(void)
{
+ if (pm == NULL)
+ return TRUE;
+
if (strcmp(pm->diskdev, "") == 0)
/* No root partition was ever selected.
* Assume that the currently mounted one should be used
Home |
Main Index |
Thread Index |
Old Index