summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-02 16:36:21 +0000
committerache <ache@FreeBSD.org>2001-08-02 16:36:21 +0000
commit3827edad85dbec7807dabc821e0b6935d41980fe (patch)
tree74d86fc36ba2141bc5f12a70b479c86da8816bc2
parentb4222d1bf255eb311660f6e06faa297585ee55a5 (diff)
downloadFreeBSD-src-3827edad85dbec7807dabc821e0b6935d41980fe.zip
FreeBSD-src-3827edad85dbec7807dabc821e0b6935d41980fe.tar.gz
Allow configTtys() be called several times - set VAR_CONSTERM to "NO" after
operation done.
-rw-r--r--usr.sbin/sysinstall/ttys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/ttys.c b/usr.sbin/sysinstall/ttys.c
index db15ec3..0b950a8 100644
--- a/usr.sbin/sysinstall/ttys.c
+++ b/usr.sbin/sysinstall/ttys.c
@@ -142,11 +142,14 @@ configTtys(void)
if (fclose(np)) {
if (changed)
msgConfirm("%s: close error: %s", templ, strerror(errno));
+ else
+ variable_set2(VAR_CONSTERM, "NO", 0);
(void)unlink(templ);
return;
}
if (!changed) {
(void)unlink(templ);
+ variable_set2(VAR_CONSTERM, "NO", 0);
return;
}
if (rename(templ, _PATH_TTYS)) {
@@ -154,4 +157,5 @@ configTtys(void)
strerror(errno));
return;
}
+ variable_set2(VAR_CONSTERM, "NO", 0);
}
OpenPOWER on IntegriCloud