summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/config.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-02-06 01:55:40 +0000
committerrwatson <rwatson@FreeBSD.org>2003-02-06 01:55:40 +0000
commit5ae8784f591a10e3b022a4ffacdfdcbd6af17e32 (patch)
tree2da2ce7d84789a028aa35c1190a48a35d6adea23 /usr.sbin/sade/config.c
parent62a61b18df25f88cb69de995e02d10e9d87148cc (diff)
downloadFreeBSD-src-5ae8784f591a10e3b022a4ffacdfdcbd6af17e32.zip
FreeBSD-src-5ae8784f591a10e3b022a4ffacdfdcbd6af17e32.tar.gz
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>
Diffstat (limited to 'usr.sbin/sade/config.c')
-rw-r--r--usr.sbin/sade/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index 0edeed4..a1b5044 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -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);
OpenPOWER on IntegriCloud