aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-07 15:13:42 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-07 15:13:42 +0000
commitcf9da17cbbd258ad9f07ae526ada2fef9ecc8741 (patch)
tree0f0275dcf53da22311b3e52637efe8f8c9327774
parentb10fee5d7bc44fa33bc39124dca2a34b0eb42ed9 (diff)
downloadsrc-cf9da17cbbd258ad9f07ae526ada2fef9ecc8741.tar.gz
src-cf9da17cbbd258ad9f07ae526ada2fef9ecc8741.zip
Apply pending /etc/ttys changes before calling editor on it
Approved by: rwatson
Notes
Notes: svn path=/head/; revision=81249
-rw-r--r--usr.sbin/sade/config.c1
-rw-r--r--usr.sbin/sysinstall/config.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index 3a83157ee553..4f1db607b2c5 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -1046,6 +1046,7 @@ configEtcTtys(dialogMenuItem *self)
"configuration.\n\n"
"To load /etc/ttys in the editor, select [Yes], otherwise, [No].")) {
} else {
+ configTtys();
sprintf(cmd, "%s /etc/ttys", variable_get(VAR_EDITOR));
dialog_clear();
systemExecute(cmd);
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index 3a83157ee553..4f1db607b2c5 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -1046,6 +1046,7 @@ configEtcTtys(dialogMenuItem *self)
"configuration.\n\n"
"To load /etc/ttys in the editor, select [Yes], otherwise, [No].")) {
} else {
+ configTtys();
sprintf(cmd, "%s /etc/ttys", variable_get(VAR_EDITOR));
dialog_clear();
systemExecute(cmd);