summaryrefslogtreecommitdiff
path: root/release/sysinstall/label.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-03-11 17:51:01 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-03-11 17:51:01 +0000
commit7d98f8beea508f9ae22eeec5ec8fa79cf1ce546a (patch)
tree8a4c821d6757d478b69c1b4b71d52e4a0d305f11 /release/sysinstall/label.c
parentbdb5b1dbdce534a5c68a442699b7fd434001e905 (diff)
Notes
Diffstat (limited to 'release/sysinstall/label.c')
-rw-r--r--release/sysinstall/label.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c
index 6449cd88fc5b..c57abf1cbcee 100644
--- a/release/sysinstall/label.c
+++ b/release/sysinstall/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.68 1997/02/22 14:11:50 peter Exp $
+ * $Id: label.c,v 1.69 1997/03/08 16:17:49 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -150,7 +150,8 @@ check_conflict(char *name)
int i;
for (i = 0; label_chunk_info[i].c; i++)
- if (label_chunk_info[i].type == PART_FILESYSTEM && label_chunk_info[i].c->private_data
+ if ((label_chunk_info[i].type == PART_FILESYSTEM || label_chunk_info[i].type == PART_FAT)
+ && label_chunk_info[i].c->private_data
&& !strcmp(((PartInfo *)label_chunk_info[i].c->private_data)->mountpoint, name))
return TRUE;
return FALSE;
@@ -837,13 +838,13 @@ diskLabel(char *str)
case 'T': /* Toggle newfs state */
if (label_chunk_info[here].type == PART_FILESYSTEM) {
- PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data);
- label_chunk_info[here].c->private_data =
- new_part(pi ? pi->mountpoint : NULL, pi ? !pi->newfs : TRUE, label_chunk_info[here].c->size);
- safe_free(pi);
- label_chunk_info[here].c->private_free = safe_free;
- if (((cp = variable_get(DISK_LABELLED)) == NULL) || (strcmp(cp, "written")))
- variable_set2(DISK_LABELLED, "yes");
+ PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data);
+ label_chunk_info[here].c->private_data =
+ new_part(pi ? pi->mountpoint : NULL, pi ? !pi->newfs : TRUE, label_chunk_info[here].c->size);
+ safe_free(pi);
+ label_chunk_info[here].c->private_free = safe_free;
+ if (((cp = variable_get(DISK_LABELLED)) == NULL) || (strcmp(cp, "written")))
+ variable_set2(DISK_LABELLED, "yes");
}
else
msg = MSG_NOT_APPLICABLE;