mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 23:28:58 +00:00
Apply pending /etc/ttys changes before calling editor on it
Approved by: rwatson
This commit is contained in:
parent
b10fee5d7b
commit
cf9da17cbb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81249
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue