1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Relocate a call to enable inetd so that it is set regardless of

whether the user chooses to edit inetd.conf.

PR:	39311
Reported by:	Martin Faxer <gmh003532@brfmasthugget.se>
This commit is contained in:
Robert Watson 2003-02-06 01:55:40 +00:00
parent 67c0ddef59
commit c2f10e2de4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110431
2 changed files with 2 additions and 4 deletions

View File

@ -941,7 +941,7 @@ configInetd(dialogMenuItem *self)
variable_set2("inetd_enable", "NO", 1);
} else {
/* If inetd is enabled, we'll need an inetd.conf */
variable_set2("inetd_enable", "YES", 1);
if (!msgYesNo("inetd(8) relies on its configuration file, /etc/inetd.conf, to determine\n"
"which of its Internet services will be available. The default FreeBSD\n"
"inetd.conf(5) leaves all services disabled by default, so they must be\n"
@ -953,7 +953,6 @@ configInetd(dialogMenuItem *self)
sprintf(cmd, "%s /etc/inetd.conf", variable_get(VAR_EDITOR));
dialog_clear();
systemExecute(cmd);
variable_set2("inetd_enable", "YES", 1);
}
}
restorescr(w);

View File

@ -941,7 +941,7 @@ configInetd(dialogMenuItem *self)
variable_set2("inetd_enable", "NO", 1);
} else {
/* If inetd is enabled, we'll need an inetd.conf */
variable_set2("inetd_enable", "YES", 1);
if (!msgYesNo("inetd(8) relies on its configuration file, /etc/inetd.conf, to determine\n"
"which of its Internet services will be available. The default FreeBSD\n"
"inetd.conf(5) leaves all services disabled by default, so they must be\n"
@ -953,7 +953,6 @@ configInetd(dialogMenuItem *self)
sprintf(cmd, "%s /etc/inetd.conf", variable_get(VAR_EDITOR));
dialog_clear();
systemExecute(cmd);
variable_set2("inetd_enable", "YES", 1);
}
}
restorescr(w);