diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-02 16:36:21 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-02 16:36:21 +0000 |
commit | bd376a348746b70d03ff9cbcc82d2ea19e85ba3d (patch) | |
tree | 74d86fc36ba2141bc5f12a70b479c86da8816bc2 | |
parent | a8ec1b48518ccc08d59e8cea9ff161aadeec0ef9 (diff) | |
download | src-bd376a348746b70d03ff9cbcc82d2ea19e85ba3d.tar.gz src-bd376a348746b70d03ff9cbcc82d2ea19e85ba3d.zip |
Allow configTtys() be called several times - set VAR_CONSTERM to "NO" after
operation done.
Notes
Notes:
svn path=/head/; revision=81056
-rw-r--r-- | usr.sbin/sysinstall/ttys.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/ttys.c b/usr.sbin/sysinstall/ttys.c index db15ec384977..0b950a81ec64 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); } |