summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/variable.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-07-16 11:13:09 +0000
committerjkh <jkh@FreeBSD.org>1999-07-16 11:13:09 +0000
commit62771172f4e1b703f46fbece196e1c900c35dd79 (patch)
tree85fa8dd97edf88f579dd64c9af0b98050ce011ac /release/sysinstall/variable.c
parent62a15a73f51b97c0ffc57c2da9aaa25cffb8cc07 (diff)
downloadFreeBSD-src-62771172f4e1b703f46fbece196e1c900c35dd79.zip
FreeBSD-src-62771172f4e1b703f46fbece196e1c900c35dd79.tar.gz
Re-enable DHCP client support again (but optional and turned off by default
for the time being) for debugging purposes. Fix bug in options selection.
Diffstat (limited to 'release/sysinstall/variable.c')
-rw-r--r--release/sysinstall/variable.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/sysinstall/variable.c b/release/sysinstall/variable.c
index ab39a47..8cbf433 100644
--- a/release/sysinstall/variable.c
+++ b/release/sysinstall/variable.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: variable.c,v 1.24 1998/07/18 09:42:02 jkh Exp $
+ * $Id: variable.c,v 1.25 1999/02/05 22:15:52 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -58,7 +58,8 @@ make_variable(char *var, char *value, int dirty)
setenv(var, value, 1);
free(vp->value);
vp->value = strdup(value);
- vp->dirty = dirty;
+ if (dirty != -1)
+ vp->dirty = dirty;
return;
}
}
@@ -68,6 +69,8 @@ make_variable(char *var, char *value, int dirty)
vp = (Variable *)safe_malloc(sizeof(Variable));
vp->name = strdup(var);
vp->value = strdup(value);
+ if (dirty == -1)
+ dirty = 0;
vp->dirty = dirty;
vp->next = VarHead;
VarHead = vp;
OpenPOWER on IntegriCloud