summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/disks.c6
-rw-r--r--usr.sbin/sysinstall/disks.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index b2d78ed..34a0c1d 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.83 1997/04/20 16:46:27 jkh Exp $
+ * $Id: disks.c,v 1.84 1997/05/05 05:16:00 pst Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -248,13 +248,13 @@ diskPartition(Device *dev, Disk *d)
case 'A':
cp = variable_get(VAR_DEDICATE_DISK);
- if (!strcasecmp(cp, "always"))
+ if (cp && !strcasecmp(cp, "always"))
rv = 1;
else {
rv = msgYesNo("Do you want to do this with a true partition entry\n"
"so as to remain cooperative with any future possible\n"
"operating systems on the drive(s)?");
- if (rv != 0 && strcasecmp(cp, "nowarn")) {
+ if (rv != 0 && (!cp || strcasecmp(cp, "nowarn"))) {
rv = !msgYesNo("This is dangerous in that it will make the drive totally\n"
"uncooperative with other potential operating systems on the\n"
"same disk. It will lead instead to a totally dedicated disk,\n"
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index b2d78ed..34a0c1d 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.83 1997/04/20 16:46:27 jkh Exp $
+ * $Id: disks.c,v 1.84 1997/05/05 05:16:00 pst Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -248,13 +248,13 @@ diskPartition(Device *dev, Disk *d)
case 'A':
cp = variable_get(VAR_DEDICATE_DISK);
- if (!strcasecmp(cp, "always"))
+ if (cp && !strcasecmp(cp, "always"))
rv = 1;
else {
rv = msgYesNo("Do you want to do this with a true partition entry\n"
"so as to remain cooperative with any future possible\n"
"operating systems on the drive(s)?");
- if (rv != 0 && strcasecmp(cp, "nowarn")) {
+ if (rv != 0 && (!cp || strcasecmp(cp, "nowarn"))) {
rv = !msgYesNo("This is dangerous in that it will make the drive totally\n"
"uncooperative with other potential operating systems on the\n"
"same disk. It will lead instead to a totally dedicated disk,\n"
OpenPOWER on IntegriCloud