From bd376a348746b70d03ff9cbcc82d2ea19e85ba3d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 2 Aug 2001 16:36:21 +0000 Subject: [PATCH] Allow configTtys() be called several times - set VAR_CONSTERM to "NO" after operation done. --- usr.sbin/sysinstall/ttys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/sysinstall/ttys.c b/usr.sbin/sysinstall/ttys.c index db15ec38497..0b950a81ec6 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); }