Apply pending /etc/ttys changes before calling editor on it

Approved by:	rwatson
This commit is contained in:
Andrey A. Chernov 2001-08-07 15:13:42 +00:00
parent b10fee5d7b
commit cf9da17cbb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81249
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);