diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c index acecddccd19b..a6a23362d8fd 100644 --- a/release/sysinstall/dist.c +++ b/release/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.100 1997/03/08 12:57:41 jkh Exp $ + * $Id: dist.c,v 1.101 1997/03/10 21:11:53 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -311,15 +311,15 @@ distMaybeSetPorts(dialogMenuItem *self) { dialog_clear_norefresh(); if (!msgYesNo("Would you like to install the FreeBSD ports collection?\n\n" - "This will give you ready access to over 800 ported software\n" - "packages, though at the cost of around 35MB of space when \"clean\"\n" - "and possibly much more than that if a lot of the distribution tarballs\n" - "are loaded (unless you have the 2nd CD from a FreeBSD CDROM distribution\n" - "available and can mount it on /cdrom, of course, in which case this is far\n" - "less of a problem).\n\n" + "This will give you ready access to over 800 ported software packages,\n" + "though at a cost of around 35MB of disk space when \"clean\" and possibly\n" + "much more than that if a lot of the distribution tarballs are loaded\n" + "(unless you have the 2nd CD from a FreeBSD CDROM distribution available\n" + "and can mount it on /cdrom, in which case this is far less of a problem).\n\n" "The ports collection is a very valuable resource and, if you have at least\n" "100MB to spare in your /usr partition, well worth having around.\n\n" - "For more information on the ports collection, see http://www.freebsd.org/ports\n")) + "For more information on the ports collection & the latest ports, visit:\n" + " http://www.freebsd.org/ports\n")) Dists |= DIST_PORTS; else Dists &= ~DIST_PORTS; 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; diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index 6449cd88fc5b..c57abf1cbcee 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/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; diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index acecddccd19b..a6a23362d8fd 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.100 1997/03/08 12:57:41 jkh Exp $ + * $Id: dist.c,v 1.101 1997/03/10 21:11:53 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -311,15 +311,15 @@ distMaybeSetPorts(dialogMenuItem *self) { dialog_clear_norefresh(); if (!msgYesNo("Would you like to install the FreeBSD ports collection?\n\n" - "This will give you ready access to over 800 ported software\n" - "packages, though at the cost of around 35MB of space when \"clean\"\n" - "and possibly much more than that if a lot of the distribution tarballs\n" - "are loaded (unless you have the 2nd CD from a FreeBSD CDROM distribution\n" - "available and can mount it on /cdrom, of course, in which case this is far\n" - "less of a problem).\n\n" + "This will give you ready access to over 800 ported software packages,\n" + "though at a cost of around 35MB of disk space when \"clean\" and possibly\n" + "much more than that if a lot of the distribution tarballs are loaded\n" + "(unless you have the 2nd CD from a FreeBSD CDROM distribution available\n" + "and can mount it on /cdrom, in which case this is far less of a problem).\n\n" "The ports collection is a very valuable resource and, if you have at least\n" "100MB to spare in your /usr partition, well worth having around.\n\n" - "For more information on the ports collection, see http://www.freebsd.org/ports\n")) + "For more information on the ports collection & the latest ports, visit:\n" + " http://www.freebsd.org/ports\n")) Dists |= DIST_PORTS; else Dists &= ~DIST_PORTS; diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 6449cd88fc5b..c57abf1cbcee 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/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;